FlexJustifyContent Enum
Definition
Describes the main-axis alignment of items inside a Avalonia.Controls.FlexPanel line.
public enum FlexJustifyContent
Fields
| Name | Description |
|---|---|
| Center | Child items are packed toward the center of the line. |
| FlexEnd | Child items are packed toward the end of the line. |
| FlexStart | Child items are packed toward the start of the line. |
| SpaceAround | Child items are evenly distributed in the line, with half-size spaces on either end. |
| SpaceBetween | Child items are evenly distributed in the line, with no space on either end. |
| SpaceEvenly | Child items are evenly distributed in the line, with equal-size spaces between each item and on either end. |
Center Field
Child items are packed toward the center of the line.
public Avalonia.Controls.FlexJustifyContent Center
Remarks
If the leftover free-space is negative, the child items will overflow equally in both directions.
FlexEnd Field
Child items are packed toward the end of the line.
public Avalonia.Controls.FlexJustifyContent FlexEnd
FlexStart Field
Child items are packed toward the start of the line.
public Avalonia.Controls.FlexJustifyContent FlexStart
Remarks
This is the default value.
SpaceAround Field
Child items are evenly distributed in the line, with half-size spaces on either end.
public Avalonia.Controls.FlexJustifyContent SpaceAround
Remarks
If the leftover free-space is negative or there is only a single child item on the line, this value is identical to Avalonia.Controls.FlexJustifyContent.Center.
SpaceBetween Field
Child items are evenly distributed in the line, with no space on either end.
public Avalonia.Controls.FlexJustifyContent SpaceBetween
Remarks
If the leftover free-space is negative or there is only a single child item on the line, this value is identical to Avalonia.Controls.FlexJustifyContent.FlexStart.
SpaceEvenly Field
Child items are evenly distributed in the line, with equal-size spaces between each item and on either end.
public Avalonia.Controls.FlexJustifyContent SpaceEvenly