![]() | ThemeStyle Class |
Namespace: DigitalRune.Game.UI.Rendering
The ThemeStyle type exposes the following members.
Name | Description | |
---|---|---|
![]() | ThemeStyle |
Initializes a new instance of the ThemeStyle 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 | |
---|---|---|
![]() | Attributes |
Gets the attributes that have been defined for this style.
|
![]() | Inherits |
Gets or sets the style from which this style inherits settings.
|
![]() | Name |
Gets or sets the name of the style.
|
![]() | States |
Gets the visual states.
|
Styles define the properties and visual appearance of UI controls. Each style has a number of visual states (States). In each frame a control is in one visual state (see VisualState) and this state defines the current appearance.
A style can inherit from another style. For example, if a style "TextBlock" was already defined in the theme, then a "GreenTextBlock" can inherit from "TextBlock" and only needs to set the Foreground color property to green - all other properties are inherited from the parent style.