New to Telerik UI for WPFStart a free 30-day trial

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; }

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.

C#
public static bool IsEnabled { get; set; }

Methods

Gets the theme of the specified DependencyObject.

C#
public static Theme GetTheme(DependencyObject element)
Parameters:elementDependencyObject

The element to get the theme of.

Returns:

Theme

Sets the theme of the specified DependencyObject.

C#
public static void SetTheme(DependencyObject element, Theme value)
Parameters:elementDependencyObject

The element to set the theme of.

valueTheme

The new theme to set.

Sets the theme of the specified DependencyObject.

C#
public static void SetThemeFromParent(DependencyObject element, DependencyObject parent)
Parameters:elementDependencyObject

The element to set the theme of.

parentDependencyObject

Parent that supplies the theme.

Sets the theme of the specified DependencyObject.

C#
public static void SetThemeFromParentOrApplication(FrameworkElement element, FrameworkElement parent)
Parameters:elementFrameworkElement

The element to set the theme of.

parentFrameworkElement

Parent that supplies the theme.