Table of Contents

Class StackLayout

Namespace
BSGameLib.UI.Builder.Models
Assembly
BSGameLib.UI.dll

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

HorizontalAlignment

HorizontalSpacing

The horizontal space between children, in pixels. Zero by default.

public int HorizontalSpacing { get; set; }

Property Value

int

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

Orientation

Padding

The padding in pixels inside each child of the stack. Zero on every side by default.

public Spacing Padding { get; set; }

Property Value

Spacing

PaddingValue

The Padding attribute's text form. Use Padding in code.

public string PaddingValue { get; set; }

Property Value

string

Size

The layout's size in pixels.

public Size Size { get; set; }

Property Value

Size

SizeValue

The Size attribute's text form. See Size.

public string SizeValue { get; set; }

Property Value

string

VerticalAlignment

How the children are aligned vertically. Top by default.

[EnumDataType(typeof(VerticalAlignment))]
public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

VerticalSpacing

The vertical space between children, in pixels. Zero by default.

public int VerticalSpacing { get; set; }

Property Value

int