Class StackLayout
The StackLayout element of a view file: children in a row or a column.
public class StackLayout : LayoutControl, IHasControls
- Inheritance
-
StackLayout
- Implements
- Inherited Members
Properties
HorizontalAlignment
How the children are aligned horizontally. Left by default.
[EnumDataType(typeof(HorizontalAlignment))]
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
HorizontalSpacing
The horizontal space between children, in pixels. Zero by default.
public int HorizontalSpacing { get; set; }
Property Value
Orientation
Whether the children are stacked top to bottom or left to right. Vertical by default.
[EnumDataType(typeof(Orientation))]
public Orientation Orientation { get; set; }
Property Value
Padding
The padding in pixels inside each child of the stack. Zero on every side by default.
public Spacing Padding { get; set; }
Property Value
PaddingValue
The Padding attribute's text form. Use Padding in code.
public string PaddingValue { get; set; }
Property Value
Size
The layout's size in pixels.
public Size Size { get; set; }
Property Value
SizeValue
The Size attribute's text form. See Size.
public string SizeValue { get; set; }
Property Value
VerticalAlignment
How the children are aligned vertically. Top by default.
[EnumDataType(typeof(VerticalAlignment))]
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
VerticalSpacing
The vertical space between children, in pixels. Zero by default.
public int VerticalSpacing { get; set; }