Layout.Arrange(LayoutContext, Size) 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 elements and determines a size for a container UIElement. Container elements that support attached layouts should call this method from their layout override implementations to form a recursive layout update.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
public:
virtual Size Arrange(LayoutContext ^ context, Size finalSize) = Arrange;
Size Arrange(LayoutContext const& context, Size const& finalSize);
public Size Arrange(LayoutContext context, Size finalSize);
Public Function Arrange (context As LayoutContext, finalSize As Size) As Size
Parameters
- context
- LayoutContext
The context object that facilitates communication between the layout and its host container.
- finalSize
- Size
The final size that the container computes for the child in layout.
Returns
The actual size that is used after the element is arranged in layout.
Remarks
Override NonVirtualizingLayout.ArrangeOverride or VirtualizingLayout.ArrangeOverride to provide the behavior for this method in a derived class.