StyleManager
Class
Provides functionality for changing control themes.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
C#
public static class StyleManager
Inheritance: objectStyleManager
Fields
ThemeProperty
DependencyProperty
Identifies the Theme attached property.
C#
public static readonly DependencyProperty ThemeProperty
Properties
Specifies a Theme that will be automatically applied on all controls in the application.
C#
public static Theme ApplicationTheme { get; set; }
Methods
Gets the theme of the specified DependencyObject.
C#
public static Theme GetTheme(DependencyObject element)
The element to get the theme of.
Returns:Sets the theme of the specified DependencyObject.
C#
public static void SetTheme(DependencyObject element, Theme value)
The element to set the theme of.
valueThemeThe new theme to set.
Sets the theme of the specified DependencyObject.
C#
public static void SetThemeFromParent(DependencyObject element, DependencyObject parent)
The element to set the theme of.
parentDependencyObjectParent that supplies the theme.
Sets the theme of the specified DependencyObject.
C#
public static void SetThemeFromParentOrApplication(FrameworkElement element, FrameworkElement parent)
The element to set the theme of.
parentFrameworkElementParent that supplies the theme.