Table of Contents

Class StyleResource

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

A named style: text settings and per-state looks that a control takes with Style="name".

public class StyleResource : Resource
Inheritance
StyleResource
Inherited Members

Properties

BasedOn

Another style this one builds on. Anything this style does not set is taken from it.

public string BasedOn { get; set; }

Property Value

string

CheckedState

The look of a check box or radio button while checked.

public ControlState CheckedState { get; set; }

Property Value

ControlState

ClickedState

The look while a control is pressed with the mouse.

public ControlState ClickedState { get; set; }

Property Value

ControlState

FocusedState

The look while a control has keyboard focus.

public ControlState FocusedState { get; set; }

Property Value

ControlState

Font

The font to use, as a path or a {Resource Id} reference.

public string Font { get; set; }

Property Value

string

FontSize

The point size of the text. Zero keeps the control's own size.

public float FontSize { get; set; }

Property Value

float

HoverState

The look while the pointer is over a control.

public ControlState HoverState { get; set; }

Property Value

ControlState

LetterSpacing

Extra space between glyphs, in pixels. Zero keeps the control's own spacing.

public float LetterSpacing { get; set; }

Property Value

float

NormalState

The look of a control in its normal state.

public ControlState NormalState { get; set; }

Property Value

ControlState

UncheckedState

The look of a check box or radio button while unchecked.

public ControlState UncheckedState { get; set; }

Property Value

ControlState