Class LayoutControl
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
BackgroundColor
The color that tints the background texture.
public string BackgroundColor { get; set; }
Property Value
BorderColor
A flat border color drawn around the layout's bounds, inside BorderThickness.
public string BorderColor { get; set; }
Property Value
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
Controls
The controls in the layout, in the order they were added.
[Required]
public List<Control> Controls { get; set; }
Property Value
FillColor
A flat fill color drawn behind the layout's children.
public string FillColor { get; set; }
Property Value
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
ShadowBlur
The shadow's blur in pixels, read as CSS reads a blur radius.
[Range(0, 2147483647)]
public int ShadowBlur { get; set; }
Property Value
ShadowColor
The color of a soft drop shadow behind the layout. Nothing is drawn without it.
public string ShadowColor { get; set; }
Property Value
ShadowOffset
How far the shadow is moved from the layout, in pixels. Written through ShadowOffsetValue.
public Point ShadowOffset { get; set; }
Property Value
ShadowOffsetValue
The ShadowOffset attribute's text, as {x,y}. Use ShadowOffset in
code.
public string ShadowOffsetValue { get; set; }
Property Value
ShadowSpread
How much larger than the layout the shadow is, in pixels. Negative values pull it in.
public int ShadowSpread { get; set; }