WrapPanelItemsAlignment Enum
Definition
public enum WrapPanelItemsAlignment
Fields
| Name | Description |
|---|---|
| Center | Items are laid out so that each column/row is centred vertically/horizontally within the panel. |
| End | Items are laid out so the last one in each column/row touches the bottom/right of the panel. |
| Justify | Items are laid out with equal spacing between them within each column/row. |
| Start | Items are laid out so the first one in each column/row touches the top/left of the panel. |
| Stretch | Items are stretched evenly to fill the entire height/width of each column/row (last column/row excluded). |
| StretchAll | Items 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.