wpf-devexpress-dot-xpf-dot-core-7a2a8276.md
A WPF theme.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public class Theme :
ITheme
Public Class Theme
Implements ITheme
The following members return Theme objects:
You need to create a Theme class instance when you load and register a custom theme that you wish to use in a WPF application.
To do this, follow the steps below.
Add a reference to an assembly that contains a custom theme.
Create a Theme instance using the Theme constructor overload that takes two arguments: theme name (the one you have specified when creating the theme) and full name (includes namespace and version number) as shown below.
Specify the assembly name (matches the theme full name by default) using the Theme.AssemblyName property.
Use the static Theme.RegisterTheme method to register the new theme in ThemeManager.
Finally, apply the theme using the ThemeManager.SetTheme method.
All predefined themes shipped with DXperience subscriptions are already registered in the ThemeManager, so you do not need to create a Theme instance and register it manually.
To learn more, see List of DevExpress WPF Themes.
Object Theme
See Also