Skip to main content

FlexJustifyContent Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Describes the main-axis alignment of items inside a Avalonia.Controls.FlexPanel line.

public enum FlexJustifyContent

Inheritance: Enum -> FlexJustifyContent

Fields​

NameDescription
CenterChild items are packed toward the center of the line.
FlexEndChild items are packed toward the end of the line.
FlexStartChild items are packed toward the start of the line.
SpaceAroundChild items are evenly distributed in the line, with half-size spaces on either end.
SpaceBetweenChild items are evenly distributed in the line, with no space on either end.
SpaceEvenlyChild 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