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 Positions child elements at absolute positions. Application developers can control the placement of child elements by providing proportional coordinates, device coordinates, or a combination of both, depending on the values that are passed to method. When one of the proportional enumeration values is provided, the corresponding X, or Y arguments that range between 0.0 and 1.0 will always cause the child to be displayed completely on screen. That is, you do not need to subtract or add the height or width of a child in order to display it flush with the left, right, top, or bottom of the . For width, height, X, or Y values that are not specified proportionally, application developers use device-dependent units to locate and size the child element. The following example shows how to use an with proportional position arguments. The code sample below shows how to place two labels by specifying device-dependent units. The following image shows the AbsoluteLayout demo from the FormsGallery sample. XAML for Xamarin.Forms supports the following attached properties for the class: Attached Property Value AbsoluteLayout.LayoutBounds A comma-separated list—possibly with spaces—of four values that specify the bounding rectangle's position and dimensions. The first two values in the list must represent numbers. The latter two values may each either be numbers, or the string "AutoSize". The AbsoluteLayout.LayoutFlags attached property determines how the values in the list are interpreted to create the bounding rectangle. AbsoluteLayout.LayoutFlags enumeration value names: All, None, HeightProportional, WidthProportional, SizeProportional, XProportional, YProportional, or PositionProportional. Application developers can combine any of these flags together by supplying a comma-separated list. Application developers can use XAML to lay out elements with the class. The example below places a blue inside an : ]]> The class can lay its child elements out in proportional units, device units, or a combination of both. Application developers should remember the following points when specifying a structure that will define the layout bounds of a child element: For elements whose height and width fit on the screen, proportional position dimensions in the range [0,1] represent elements that are completely on the screen, regardless of whether the height, width, or both are specified in device or proportional units.The above point means that, to specify an element in the lower right hand corner of the screen and that is half as wide and half as all as the screen, with a value of All, the application developer would specify "1.0, 1.0, 0.5, 0.5".The app developer can inadvertently cause child elements for which one or both size dimensions were specified proportionally to be displayed partially off the screen, or hidden altogether, by specifying device-unit positions that do not leave enough room for the calculated size of the child.Each part of the bounding structure is interpreted according to the value that controls it. A given rectangle might, for example, have an X-coordinate that is in device units, a Y-coordinate that is in proportional units, a height that is in proportional units, and a width that is in device units, or any other combination of device and proportional units. Rectangles that, when interpreted by using the current set on the child, represent bounding boxes that are partially or wholly off-screen—for example, by having a width that is larger than the screen width—may give unexpected results. 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 Initializes a new instance of the AbsoluteLayout class. 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 System.Double A value that indicates that the width or height of the child should be sized to that childs native size. Application developers can set the width or height of the property to on a visual element when adding to the layout to cause that element to be measured during the layout pass and sized appropriately. 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.AbsoluteLayout+IAbsoluteList<Xamarin.Forms.View> Gets the collection of child elements of the AbsoluteLayout. The collection of child elements. Application developers can use implicit collection syntax in XAML to add items to this collection, because this property is the ContentPropertyAttribute for the AbsoluteLayout class. 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.TypeConverter(typeof(Xamarin.Forms.BoundsTypeConverter)) Xamarin.Forms.Rectangle A visual element. Gets the layout bounds of . The layout bounds of the object. This method supports the AbsoluteLayout.LayoutBounds XAML attached property. In XAML, Application developers can specify a comma-separated list—possibly with spaces—of four values that specify the bounding rectangle's position and dimensions. The first two values in the list must represent numbers. The latter two values may each either be numbers, or the string "AutoSize". The AbsoluteLayout.LayoutFlags attached property determines how the values in the list are interpreted to create the bounding rectangle. 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.AbsoluteLayoutFlags A visual element. Gets the layout flags that were specified when was added to an . The layout flags of the object. This method supports the AbsoluteLayout.LayoutFlags XAML attached property. In XAML, Application developers can specify the following enumeration value names for the value of this property on the children of a : All None HeightProportional WidthProportional SizeProportional XProportional YProportional PositionProportional Application developers can combine any of the above values by supplying a comma-separated list. 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 Implements the attached property that represents the layout bounds of child elements. Bindable at run time with the string "LayoutBounds". See Remarks. The interface for this property is defined by the and methods. 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 X coordinate of the region that contains the child elements and that is used to calulate proportional values. The Y coordinate of the region that contains the child elements and that is used to calulate proportional values. The width of the the region that contains the child elements and that is used to calulate proportional values. The height of the region that contains the child elements and that is used to calulate proportional values. Positions and sizes the children of an AbsoluteLayout. Application developers can override to change the default behavior of . When doing so, it is recommended to call the base method and then modify the dimensions and locations of the children directly. 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 Implements the attached property that contains the values for child elements. The interface for this property is defined by the and methods. 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 element that was added to the children. Called when a child is added to the . Application developers can override to change the default behavior thata is triggered when a child is added. When doing so, it is recommended to call the base method and then add additional logic. 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 element that was removed from the children. Called when a child is removed from the . Application developers can override to change the default behavior thata is triggered when a child is removed. When doing so, it is recommended to call the base method and then add additional logic. 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 The available width for the AbsoluteLayout to use. The available height for the AbsoluteLayout to use. Called during the measure pass of a layout cycle to get the desired size of the AbsoluteLayout. A which contains the desired size of the AbsoluteLayout. Application developers can override to change the default behavior thata is triggered when a child is removed. When doing so, it is recommended to call the base method and then modify the dimensions and locations of the children directly. 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 view to delimit by . A rectangle that represents the desired size and shape of . Sets the layout bounds of a view that will be used to size it when it is layed out. This method supports the AbsoluteLayout.LayoutBounds XAML attached property. In XAML, Application developers can specify a comma-separated list—possibly with spaces—of four values that specify the bounding rectangle's position and dimensions. The first two values in the list must represent numbers. The latter two values may each either be numbers, or the string "AutoSize". The AbsoluteLayout.LayoutFlags attached property determines how the values in the list are interpreted to create the bounding rectangle. Application developers can call this method to update the layout of a view after it is 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 view on which to set the layout flags. A that describes the how to interpret the layout bounds for . Sets the layout flags of a view that will be used to interpret the layout bounds set on it when it is added to the layout. This method supports the AbsoluteLayout.LayoutFlags XAML attached property. In XAML, Application developers can specify the following enumeration value names for the value of this property on the children of a : All None HeightProportional WidthProportional SizeProportional XProportional YProportional PositionProportional Application developers can combine any of the above values by supplying a comma-separated list. Application developers can call this method to update the layout flags of a view after it is added.