StaggeredLayout Class

Definition

Arranges child elements into a staggered grid pattern where items are added to the column that has used least amount of space.

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

Constructors

StaggeredLayout()

Initializes a new instance of the StaggeredLayout class.

Fields

ColumnSpacingProperty

Identifies the ColumnSpacing dependency property.

DesiredColumnWidthProperty

Identifies the DesiredColumnWidth dependency property.

RowSpacingProperty

Identifies the RowSpacing dependency property.

Properties

ColumnSpacing

Gets or sets the spacing between columns of items.

DesiredColumnWidth

Gets or sets the desired width for each column.

RowSpacing

Gets or sets the spacing between rows of items.

Methods

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

Applies to