Layout.LayoutChildIntoBoundingRegion(VisualElement, Rectangle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Positions a child element into a bounding region while respecting the child elements HorizontalOptions and VerticalOptions.
public static void LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region);
static member LayoutChildIntoBoundingRegion : Xamarin.Forms.VisualElement * Xamarin.Forms.Rectangle -> unit
Parameters
- child
- VisualElement
The child element to be positioned.
- region
- Rectangle
The bounding region in which the child should be positioned.
Remarks
This method is called in the layout cycle after the general regions for each child have been calculated. This method will handle positioning the element relative to the bounding region given if the bounding region given is larger than the child's desired size.