Skip to main content

WrapPanelItemsAlignment Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia
public enum WrapPanelItemsAlignment

Inheritance: Enum -> WrapPanelItemsAlignment

Fields​

NameDescription
CenterItems are laid out so that each column/row is centred vertically/horizontally within the panel.
EndItems are laid out so the last one in each column/row touches the bottom/right of the panel.
JustifyItems are laid out with equal spacing between them within each column/row.
StartItems are laid out so the first one in each column/row touches the top/left of the panel.
StretchItems are stretched evenly to fill the entire height/width of each column/row (last column/row excluded).
StretchAllItems are stretched evenly to fill the entire height/width of each column/row.

Center Field​

Items are laid out so that each column/row is centred vertically/horizontally within the panel.

public Avalonia.Controls.WrapPanelItemsAlignment Center

End Field​

Items are laid out so the last one in each column/row touches the bottom/right of the panel.

public Avalonia.Controls.WrapPanelItemsAlignment End

Justify Field​

Items are laid out with equal spacing between them within each column/row.

public Avalonia.Controls.WrapPanelItemsAlignment Justify

Remarks​

Avalonia.Controls.WrapPanel.ItemSpacing becomes the minimum spacing between items.

Start Field​

Items are laid out so the first one in each column/row touches the top/left of the panel.

public Avalonia.Controls.WrapPanelItemsAlignment Start

Stretch Field​

Items are stretched evenly to fill the entire height/width of each column/row (last column/row excluded).

public Avalonia.Controls.WrapPanelItemsAlignment Stretch

Remarks​

Avalonia.Controls.WrapPanel.ItemWidth or Avalonia.Controls.WrapPanel.ItemHeight becomes the minimum size of items.

StretchAll Field​

Items are stretched evenly to fill the entire height/width of each column/row.

public Avalonia.Controls.WrapPanelItemsAlignment StretchAll

Remarks​

Avalonia.Controls.WrapPanel.ItemWidth or Avalonia.Controls.WrapPanel.ItemHeight becomes the minimum size of items.