Skip to main content

FlexAlignContent Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Defines the alignment mode of the lines inside a Avalonia.Controls.FlexPanel along the cross-axis.

public enum FlexAlignContent

Inheritance: Enum -> FlexAlignContent

Fields​

NameDescription
CenterLines are packed toward the center of the container
FlexEndLines are packed toward the end of the container.
FlexStartLines are packed toward the start of the container.
SpaceAroundLines are evenly distributed in the container, with half-size spaces on either end.
SpaceBetweenLines are evenly distributed in the container, with no space on either end.
SpaceEvenlyLines are evenly distributed in the container, with equal-size spaces between each line and on either end.
StretchLines are stretched to take up the remaining space.

Center Field​

Lines are packed toward the center of the container

public Avalonia.Controls.FlexAlignContent Center

FlexEnd Field​

Lines are packed toward the end of the container.

public Avalonia.Controls.FlexAlignContent FlexEnd

FlexStart Field​

Lines are packed toward the start of the container.

public Avalonia.Controls.FlexAlignContent FlexStart

SpaceAround Field​

Lines are evenly distributed in the container, with half-size spaces on either end.

public Avalonia.Controls.FlexAlignContent SpaceAround

SpaceBetween Field​

Lines are evenly distributed in the container, with no space on either end.

public Avalonia.Controls.FlexAlignContent SpaceBetween

SpaceEvenly Field​

Lines are evenly distributed in the container, with equal-size spaces between each line and on either end.

public Avalonia.Controls.FlexAlignContent SpaceEvenly

Stretch Field​

Lines are stretched to take up the remaining space.

public Avalonia.Controls.FlexAlignContent Stretch

Remarks​

This is the default value.