Class ControlState
The look of a control in one state: its colors, texture, border and shadow.
public class ControlState
- Inheritance
-
ControlState
- Inherited Members
Properties
BorderColor
A flat border color in this state, drawn 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
Color
The color of the texture in this state.
public string Color { get; set; }
Property Value
FillColor
A flat fill color in this state, as a hex color, a rgb() value or a color name.
public string FillColor { get; set; }
Property Value
FillGradient
A gradient fill in this state, naming a Gradient resource. Drawn in place of FillColor when both are set.
public string FillGradient { get; set; }
Property Value
FontColor
The color of the text in this state. Black by default.
public string FontColor { 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 in this state. Nothing is drawn without it.
public string ShadowColor { get; set; }
Property Value
ShadowOffset
How far the shadow is moved from the control, 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 control the shadow is, in pixels. Negative values pull it in.
public int ShadowSpread { get; set; }
Property Value
Texture
The texture drawn in this state.
public TextureReference Texture { get; set; }