Layout.LayoutChildIntoBoundingRegion(VisualElement, Rect) 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(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.