Layout.LayoutChildIntoBoundingRegion(VisualElement, Rect) Method

Definition

Positions a child element into a bounding region while respecting the child elements HorizontalOptions and VerticalOptions.

public:
 static void LayoutChildIntoBoundingRegion(Microsoft::Maui::Controls::VisualElement ^ child, Microsoft::Maui::Graphics::Rect region);
public static void LayoutChildIntoBoundingRegion (Microsoft.Maui.Controls.VisualElement child, Microsoft.Maui.Graphics.Rect region);
static member LayoutChildIntoBoundingRegion : Microsoft.Maui.Controls.VisualElement * Microsoft.Maui.Graphics.Rect -> unit
Public Shared Sub LayoutChildIntoBoundingRegion (child As VisualElement, region As Rect)

Parameters

child
VisualElement

The child element to be positioned.

region
Rect

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.

Applies to