Share via


NonVirtualizingLayout.ArrangeOverride Method

Definition

When implemented in a derived class, provides the behavior for the "Arrange" pass of layout. Classes can override this method to define their own "Arrange" pass behavior.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Size ArrangeOverride(NonVirtualizingLayoutContext const& context, Size const& finalSize);
protected virtual Size ArrangeOverride(NonVirtualizingLayoutContext context, Size finalSize);
Protected Overridable Function ArrangeOverride (context As NonVirtualizingLayoutContext, finalSize As Size) As Size

Parameters

context
NonVirtualizingLayoutContext

The context object that facilitates communication between the layout and its host container.

finalSize
Size

The final area within the container that this object should use to arrange itself and its children.

Returns

The actual size that is used after the element is arranged in layout.

Remarks

Override this method to provide the behavior for the arrange pass of the layout cycle on a container element.

The attached layout is expected to call Arrange for each of the container's children, which can be accessed through the provided NonVirtualizingLayoutContext.

Applies to