ClassStyleManager
Provides functionality for changing control themes.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public static class StyleManager
Inheritance: objectStyleManager
Fields
ThemeProperty
Identifies the Theme attached property.
Declaration
public static readonly DependencyProperty ThemeProperty
Field Value
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
Methods
GetTheme(DependencyObject)
Gets the theme of the specified DependencyObject.
Declaration
public static Theme GetTheme(DependencyObject element)
Parameters
element
DependencyObject
The element to get the theme of.
Returns
SetTheme(DependencyObject, Theme)
Sets the theme of the specified DependencyObject.
Declaration
public static void SetTheme(DependencyObject element, Theme value)
Parameters
element
DependencyObject
The element to set the theme of.
value
The new theme to set.
SetThemeFromParent(DependencyObject, DependencyObject)
Sets the theme of the specified DependencyObject.
Declaration
public static void SetThemeFromParent(DependencyObject element, DependencyObject parent)
Parameters
element
DependencyObject
The element to set the theme of.
parent
DependencyObject
Parent that supplies the theme.
SetThemeFromParentOrApplication(FrameworkElement, FrameworkElement)
Sets the theme of the specified DependencyObject.
Declaration
public static void SetThemeFromParentOrApplication(FrameworkElement element, FrameworkElement parent)
Parameters
element
FrameworkElement
The element to set the theme of.
parent
FrameworkElement
Parent that supplies the theme.