ThemeState Class |
Namespace: DigitalRune.Game.UI.Rendering
The ThemeState type exposes the following members.
Name | Description | |
---|---|---|
ThemeState |
Initializes a new instance of the ThemeState class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Background |
Gets or sets the background color.
| |
Foreground |
Gets or sets the foreground color.
| |
Images |
Gets the images that create the appearance of the control.
| |
IsInherited |
Gets or sets a value indicating whether this state is inherited.
| |
Name |
Gets or sets the name of the state.
| |
Opacity |
Gets or sets the opacity.
|
In each frame a control is in one visual state (see VisualState) and this state defines the current appearance (e.g. the sprite images that should be drawn).
Inherited states: Controls that are nested inside other controls (e.g. a TextBlock inside a Button) can inherit a visual state from its parent control. For example, a TextBlock does not have a "Focused" state. But the UI theme can define a "Focused" state for the TextBlock and set the IsInherited flag. This state will be used when the visual parent control of the TextBlock is in its "Focused" state.