Class StyleManager
Provides functionality for changing control themes.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class StyleManager
Fields
ThemeProperty
Identifies the Theme attached property.
Declaration
public static readonly DependencyProperty ThemeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ApplicationTheme
Specifies a Theme that will be automatically applied on all controls in the application.
Declaration
public static Theme ApplicationTheme { get; set; }
Property Value
Theme
|
IsEnabled
Gets or sets whether StyleManager will apply themes on controls. True by default for normal assemblies (with XAML) and false by default for assemblies without XAML.
Declaration
public static bool IsEnabled { get; set; }
Property Value
System.Boolean
|
Methods
GetTheme(DependencyObject)
Gets the theme of the specified System.Windows.DependencyObject.
Declaration
public static Theme GetTheme(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
The element to get the theme of. |
Returns
Theme
|
SetDefaultStyleKey(Control, Type)
Used to change the DefaultStyleKey of control.
Declaration
public static void SetDefaultStyleKey(Control control, Type controlType)
Parameters
System.Windows.Controls.Control
control
The control whose DefaultStyleKey should change. |
System.Type
controlType
The control type. |
SetTheme(DependencyObject, Theme)
Sets the theme of the specified System.Windows.DependencyObject.
Declaration
public static void SetTheme(DependencyObject element, Theme value)
Parameters
System.Windows.DependencyObject
element
The element to set the theme of. |
Theme
value
The new theme to set. |
SetThemeFromParent(DependencyObject, DependencyObject)
Sets the theme of the specified System.Windows.DependencyObject.
Declaration
public static void SetThemeFromParent(DependencyObject element, DependencyObject parent)
Parameters
System.Windows.DependencyObject
element
The element to set the theme of. |
System.Windows.DependencyObject
parent
Parent that supplies the theme. |
SetThemeFromParentOrApplication(FrameworkElement, FrameworkElement)
Sets the theme of the specified System.Windows.DependencyObject.
Declaration
public static void SetThemeFromParentOrApplication(FrameworkElement element, FrameworkElement parent)
Parameters
System.Windows.FrameworkElement
element
The element to set the theme of. |
System.Windows.FrameworkElement
parent
Parent that supplies the theme. |