Skip to main content

FlexAlignItems Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Defines the alignment mode along the cross-axis of Avalonia.Controls.FlexPanel child items.

public enum FlexAlignItems

Inheritance: Enum -> FlexAlignItems

Fields​

NameDescription
CenterItems are aligned to the cross-axis center of the line.
FlexEndItems are aligned to the cross-axis end margin edge of the line.
FlexStartItems are aligned to the cross-axis start margin edge of the line.
StretchItems are stretched to fill the cross size of the line.

Center Field​

Items are aligned to the cross-axis center of the line.

public Avalonia.Controls.FlexAlignItems Center

Remarks​

If the cross size of the line is less than that of the child item, it will overflow equally in both directions.

FlexEnd Field​

Items are aligned to the cross-axis end margin edge of the line.

public Avalonia.Controls.FlexAlignItems FlexEnd

FlexStart Field​

Items are aligned to the cross-axis start margin edge of the line.

public Avalonia.Controls.FlexAlignItems FlexStart

Stretch Field​

Items are stretched to fill the cross size of the line.

public Avalonia.Controls.FlexAlignItems Stretch

Remarks​

This is the default value.