Edit

Share via


WrapLayout Class

Definition

Arranges elements by wrapping them to fit the available space. When Orientation is set to Orientation.Horizontal, element are arranged in rows until the available width is reached and then to a new row. When Orientation is set to Orientation.Vertical, element are arranged in columns until the available height is reached.

public class WrapLayout : Microsoft.UI.Xaml.Controls.VirtualizingLayout
type WrapLayout = class
    inherit VirtualizingLayout
Public Class WrapLayout
Inherits VirtualizingLayout
Inheritance
Microsoft.UI.Xaml.Controls.VirtualizingLayout
WrapLayout

Constructors

WrapLayout()

Fields

HorizontalSpacingProperty

Identifies the HorizontalSpacing dependency property.

OrientationProperty

Identifies the Orientation dependency property.

VerticalSpacingProperty

Identifies the VerticalSpacing dependency property.

Properties

HorizontalSpacing

Gets or sets a uniform Horizontal distance (in pixels) between items when Orientation is set to Horizontal, or between columns of items when Orientation is set to Vertical.

Orientation

Gets or sets the orientation of the WrapLayout. Horizontal means that child controls will be added horizontally until the width of the panel is reached, then a new row is added to add new child controls. Vertical means that children will be added vertically until the height of the panel is reached, then a new column is added.

VerticalSpacing

Gets or sets a uniform Vertical distance (in pixels) between items when Orientation is set to Vertical, or between rows of items when Orientation is set to Horizontal.

Methods

ArrangeOverride(VirtualizingLayoutContext, Size)
InitializeForContextCore(VirtualizingLayoutContext)
MeasureOverride(VirtualizingLayoutContext, Size)
OnItemsChangedCore(VirtualizingLayoutContext, Object, NotifyCollectionChangedEventArgs)
UninitializeForContextCore(VirtualizingLayoutContext)

Applies to