You are viewing help content for pre-release software. This document and the features it describes are subject to change. Switch to the current version.

Theme.RegisterTheme(Theme) Method

Registers the specified theme in the ThemeManager.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.2.dll


public static void RegisterTheme(
    Theme theme
Public Shared Sub RegisterTheme(
    theme As Theme


Name Type Description
theme Theme

A String that specifies the theme name.


To be able to apply a newly created theme to a WPF application, you should register it using the static RegisterTheme method. To apply a theme, use the static ThemeManager.SetTheme method.

To unregister a particular theme, use the static Theme.RemoveTheme method.

To unregister all manually registered themes, use the static Theme.RemoveAllCustomThemes method.

See Also