Class
StyleManager

Provides functionality for changing control themes.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public static class StyleManager

Inheritance: objectStyleManager

Fields

ThemeProperty

Identifies the Theme attached property.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public static bool IsEnabled { get; set; }

Property Value

bool

Methods

GetTheme(DependencyObject)

Gets the theme of the specified DependencyObject.

Declaration

cs-api-definition
public static Theme GetTheme(DependencyObject element)

Parameters

element

DependencyObject

The element to get the theme of.

Returns

Theme

SetTheme(DependencyObject, Theme)

Sets the theme of the specified DependencyObject.

Declaration

cs-api-definition
public static void SetTheme(DependencyObject element, Theme value)

Parameters

element

DependencyObject

The element to set the theme of.

value

Theme

The new theme to set.

SetThemeFromParent(DependencyObject, DependencyObject)

Sets the theme of the specified DependencyObject.

Declaration

cs-api-definition
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

cs-api-definition
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.