Skip to main content

Enum StackLayout.CrossAxisAlignment

Defines how child controls are aligned on the axis perpendicular to the stacking direction.

Assembly: MicroLayout.dll​
View Source​
Declaration
public enum StackLayout.CrossAxisAlignment

Fields​

Start​

Aligns controls to the start of the cross-axis (Left for Vertical stack, Top for Horizontal stack).

View Source​
Declaration
Start = 0

Center​

Centers controls on the cross-axis.

View Source​
Declaration
Center = 1

End​

Aligns controls to the end of the cross-axis (Right for Vertical stack, Bottom for Horizontal stack).

View Source​
Declaration
End = 2

Stretch​

Stretches controls to fill the available space on the cross-axis.

View Source​
Declaration
Stretch = 3