ClassThemeResourceKey
ThemeResourceKey class is used by the theming mechanism. Every visual control has a control template with different ThemeResourceKey for each theme.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ThemeResourceKey : ResourceKey
Inheritance: objectThemeResourceKey
Constructors
ThemeResourceKey()
Initializes a new instance of the ThemeResourceKey class.
Declaration
public ThemeResourceKey()
ThemeResourceKey(Type, Type)
Initializes a new instance of the ThemeResourceKey class.
ThemeResourceKey(Type, Type, object)
Initializes a new instance of the ThemeResourceKey class.
Properties
Assembly
Gets an assembly object that indicates which assembly's dictionary to look in for the value associated with this key.
ElementType
Gets or sets the type of the visual element.
Declaration
public Type ElementType { get; set; }
Property Value
The type of the visual element.
ResourceId
Gets or sets the resource id.
Declaration
public object ResourceId { get; set; }
Property Value
The resource id.
Methods
GetDefaultStyleKey(Theme, Type)
Gets the default style key.
Declaration
public static ThemeResourceKey GetDefaultStyleKey(Theme theme, Type elementType)
Parameters
theme
The theme of the main control (control that implements IThemable interface).
elementType
Type of the visual element.
Returns
GetDefaultStyleKey(Theme, Type, Type)
Gets the default style key.
Declaration
public static ThemeResourceKey GetDefaultStyleKey(Theme theme, Type elementType, Type defaultTheme)
Parameters
theme
The theme of the main control (control that implements IThemable interface).
elementType
Type of the visual element.
defaultTheme
The default theme.
Returns
GetHashCode()
Serves as a hash function for a particular type.