Table of Contents

Class LayoutControl

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

The base of the stack, dock and grid layouts: the appearance they paint behind and around their children.

[KnownType(typeof(StackLayout))]
[KnownType(typeof(DockLayout))]
[KnownType(typeof(GridLayout))]
public abstract class LayoutControl : Control, IHasControls
Inheritance
LayoutControl
Implements
Derived
Inherited Members

Properties

Background

A texture drawn behind the children, filling the layout's bounds.

public TextureReference Background { get; set; }

Property Value

TextureReference

BackgroundColor

The color that tints the background texture.

public string BackgroundColor { get; set; }

Property Value

string

BorderColor

A flat border color drawn around the layout's bounds, inside BorderThickness.

public string BorderColor { get; set; }

Property Value

string

BorderThickness

The border's width in pixels. Has no effect unless BorderColor is set. One by default.

[Range(0, 2147483647)]
public int BorderThickness { get; set; }

Property Value

int

Controls

The controls in the layout, in the order they were added.

[Required]
public List<Control> Controls { get; set; }

Property Value

List<Control>

FillColor

A flat fill color drawn behind the layout's children.

public string FillColor { get; set; }

Property Value

string

FillGradient

A gradient fill drawn behind the children, naming a Gradient resource. Drawn in place of FillColor when both are set.

public string FillGradient { get; set; }

Property Value

string

ShadowBlur

The shadow's blur in pixels, read as CSS reads a blur radius.

[Range(0, 2147483647)]
public int ShadowBlur { get; set; }

Property Value

int

ShadowColor

The color of a soft drop shadow behind the layout. Nothing is drawn without it.

public string ShadowColor { get; set; }

Property Value

string

ShadowOffset

How far the shadow is moved from the layout, in pixels. Written through ShadowOffsetValue.

public Point ShadowOffset { get; set; }

Property Value

Point

ShadowOffsetValue

The ShadowOffset attribute's text, as {x,y}. Use ShadowOffset in code.

public string ShadowOffsetValue { get; set; }

Property Value

string

ShadowSpread

How much larger than the layout the shadow is, in pixels. Negative values pull it in.

public int ShadowSpread { get; set; }

Property Value

int