VisualElement.Layout(Rect) Method

Definition

Updates the bounds of the element during the layout cycle.

public:
 void Layout(Microsoft::Maui::Graphics::Rect bounds);
public void Layout (Microsoft.Maui.Graphics.Rect bounds);
member this.Layout : Microsoft.Maui.Graphics.Rect -> unit
Public Sub Layout (bounds As Rect)

Parameters

bounds
Rect

The new bounds of the element.

Remarks

Calling this method will trigger a layout cycle for the sub-tree of this element.

Applies to