Xamarin.Forms.Core
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Layout<Xamarin.Forms.View>
Xamarin.Forms.View
A that uses s to layout its children.
The RelativeLayoutExample class in the following code extends the class by adding a that contains a heading and another label. Both labels are positioned relative to the :
{
return 0;
}));
relativeLayout.Children.Add (relativelyPositioned,
Constraint.RelativeToParent ((parent) => {
return parent.Width / 3;
}),
Constraint.RelativeToParent ((parent) => {
return parent.Height / 2;
}));
this.Content = relativeLayout;
}
}
]]>
For a more complete example that exercises many more of the layout options for the class, see the FormsGallery sample that can be found on the Sample Applications page.
XAML for Xamarin.Forms supports the following attached properties for the class:
AttachedProperty
Value
-
XConstraint
XAML markup extension for a constraint expression. See .
-
YConstraint
XAML markup extension for a constraint expression. See .
-
WidthConstraint
XAML markup extension for a constraint expression. See .
-
HeightConstraint
XAML markup extension for a constraint expression. See .
Constructor
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Creates a new with default values.
To be added.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the bindable property associated with /.
To be added.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.RelativeLayout+IRelativeList<Xamarin.Forms.View>
List of s that are children of this .
To be added.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BoundsConstraint
The for which the bounds constraint is being requested.
Returns the bounds constraint of the .
The of the .
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Constraint
The for which the height constraint is being requested.
Returns the height constraint of the .
The on the height of the .
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Constraint
The for which the width constraint is being requested.
Returns the width constraint of the .
The on the width of the .
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Constraint
The for which the X constraint is being requested.
Returns the X constraint of the .
The on the X position of the .
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Constraint
The for which the Y constraint is being requested.
Returns the Y constraint of the .
The on the Y position of the .
To be added.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the bindable property associated with the / methods.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The left-side bound of the rectangle into which the children will be laid out.
The top bound of the rectangle into which the children will be laid out.
The width of the rectangle into which the children will be laid out.
The height of the rectangle into which the children will be laid out.
Lays out the in the specified rectangle.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The added to the .
Called when a is added to the collection.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The removed from the collection.
Called when a is removed from the collection.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Obsolete("Use OnMeasure")
Xamarin.Forms.SizeRequest
To be added.
To be added.
Called when this has received a size request.
To be added.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The to which the constraint will be applied.
The on the .
Sets as a constraint on the bounds of .
To be added.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the width constraint.
To be added.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the constraint on X.
To be added.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the constraint on Y.
To be added.