Share via


VisualElement.ArrangeOverride(Rect) Method

Definition

Allows subclasses to implement custom Arrange logic during a controls layout pass.

protected:
 virtual Microsoft::Maui::Graphics::Size ArrangeOverride(Microsoft::Maui::Graphics::Rect bounds);
protected virtual Microsoft.Maui.Graphics.Size ArrangeOverride (Microsoft.Maui.Graphics.Rect bounds);
abstract member ArrangeOverride : Microsoft.Maui.Graphics.Rect -> Microsoft.Maui.Graphics.Size
override this.ArrangeOverride : Microsoft.Maui.Graphics.Rect -> Microsoft.Maui.Graphics.Size
Protected Overridable Function ArrangeOverride (bounds As Rect) As Size

Parameters

bounds
Rect

The new bounds of the element.

Returns

The resulting size of this element's frame by the platform.

Remarks

Subclasses will stil want to call ArrangeOverride(Rect) on the base class or call PlatformArrange(Rect) on the Handler .

Applies to