Click or drag to resize
DigitalRuneThemeStyle Class
Represents a visual style of a UI control.
Inheritance Hierarchy
SystemObject
  DigitalRune.Game.UI.RenderingThemeStyle

Namespace: DigitalRune.Game.UI.Rendering
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public class ThemeStyle : INamedObject

The ThemeStyle type exposes the following members.

Constructors
  NameDescription
Public methodThemeStyle
Initializes a new instance of the ThemeStyle class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAttributes
Gets the attributes that have been defined for this style.
Public propertyInherits
Gets or sets the style from which this style inherits settings.
Public propertyName
Gets or sets the name of the style.
Public propertyStates
Gets the visual states.
Top
Remarks

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.

See Also