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