Click or drag to resize
DigitalRuneThemeState Class
Represents a visual state of a UI control.
Inheritance Hierarchy
SystemObject
  DigitalRune.Game.UI.RenderingThemeState

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 ThemeState : INamedObject

The ThemeState type exposes the following members.

Constructors
  NameDescription
Public methodThemeState
Initializes a new instance of the ThemeState 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 propertyBackground
Gets or sets the background color.
Public propertyForeground
Gets or sets the foreground color.
Public propertyImages
Gets the images that create the appearance of the control.
Public propertyIsInherited
Gets or sets a value indicating whether this state is inherited.
Public propertyName
Gets or sets the name of the state.
Public propertyOpacity
Gets or sets the opacity.
Top
Remarks

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.

See Also