Class RelativeLayout
Forms9Patch RelativeLayout.
Inheritance
Implements
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class RelativeLayout : Layout<RelativeLayout>, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, IGestureController, IGestureRecognizers, IPaddingElement, IControlTemplated, IDisposable, IViewController, IVisualElementController, IElementController, ILayout, ILayoutController, IViewContainer<View>, ILayout, IBackground, IShape, IElement, IElementConfiguration<RelativeLayout>
Constructors
RelativeLayout()
Initializes a new instance of the RelativeLayout class.
Declaration
public RelativeLayout()
Properties
Children
List of Views that are children of this RelativeLayout.
Declaration
public RelativeLayout.IRelativeList<View> Children { get; }
Property Value
Type | Description |
---|---|
RelativeLayout.IRelativeList<View> | The children. |
Methods
GetBoundsConstraint(BindableObject)
Gets the bounds constraint of element in RelativeLayout
Declaration
public static BoundsConstraint GetBoundsConstraint(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
BoundsConstraint | The bounds constraint. |
GetHeightConstraint(BindableObject)
Gets the height constraint of element in RelativeLayout
Declaration
public static Constraint GetHeightConstraint(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Constraint | The height constraint. |
GetWidthConstraint(BindableObject)
Gets the width constraint of element in RelativeLayout
Declaration
public static Constraint GetWidthConstraint(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Constraint | The width constraint. |
GetXConstraint(BindableObject)
Gets the X constraint of element in RelativeLayout
Declaration
public static Constraint GetXConstraint(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Constraint | The XC onstraint. |
GetYConstraint(BindableObject)
Gets the Y constraint of element in RelativeLayout
Declaration
public static Constraint GetYConstraint(BindableObject bindable)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Returns
Type | Description |
---|---|
Constraint | The YC onstraint. |
On<T>()
Marker interface for returning platform-specific configuration elements.
Declaration
public IPlatformElementConfiguration<T, RelativeLayout> On<T>()
where T : IConfigPlatform
Returns
Type | Description |
---|---|
IPlatformElementConfiguration<T, RelativeLayout> |
Type Parameters
Name | Description |
---|---|
T |
SetBoundsConstraint(BindableObject, BoundsConstraint)
Sets the bounds constraint of element in RelativeLayout
Declaration
public static void SetBoundsConstraint(BindableObject bindable, BoundsConstraint value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
BoundsConstraint | value | Value. |
SetHeightConstraint(BindableObject, Constraint)
Sets the height constraint of element in RelativeLayout
Declaration
public static void SetHeightConstraint(BindableObject bindable, Constraint value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Constraint | value | Value. |
SetWidthConstraint(BindableObject, Constraint)
Sets the width constraint of element in RelativeLayout
Declaration
public static void SetWidthConstraint(BindableObject bindable, Constraint value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Constraint | value | Value. |
SetXConstraint(BindableObject, Constraint)
Sets the X constraint of element in RelativeLayout
Declaration
public static void SetXConstraint(BindableObject bindable, Constraint value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Constraint | value | Value. |
SetYConstraint(BindableObject, Constraint)
Sets the Y constraint of element in RelativeLayout
Declaration
public static void SetYConstraint(BindableObject bindable, Constraint value)
Parameters
Type | Name | Description |
---|---|---|
BindableObject | bindable | Bindable. |
Constraint | value | Value. |