VisualElement.Arrange(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 child objects and determines a size for an element.
public:
void Arrange(Microsoft::Maui::Graphics::Rect bounds);
public void Arrange (Microsoft.Maui.Graphics.Rect bounds);
member this.Arrange : Microsoft.Maui.Graphics.Rect -> unit
Public Sub Arrange (bounds As Rect)
Parameters
- bounds
- Rect
The final size that the parent computes for the child in layout, provided as a Rect value.
Remarks
Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update. Prior to .NET 9, this method simply called Layout(Rect). If you need to revert to the old behavior, just call Layout(Rect).