Back to Devexpress

PredefinedThemePalettes Class

wpf-devexpress-dot-xpf-dot-core-8238da40.md

latest2.3 KB
Original Source

PredefinedThemePalettes Class

Lists the predefined theme palettes.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static class PredefinedThemePalettes
vb
Public Module PredefinedThemePalettes

Remarks

You can use predefined palettes with the following themes:

Theme FamilyThemes
Windows 11Dark, Light
Windows 10Dark, Light
Office 2019Black, Colorful, Dark Gray, White, HighContrast
Visual Studio 2019Blue, Dark, Light
Office 2016 SEBlack, Colorful, Dark Gray, White
Visual Studio 2017Blue, Dark, Light

Apply a Palette in Code

  1. Reference the Mono.cecil NuGet package in your project.
  2. Call the Theme.RegisterPredefinedPaletteThemes method to enable predefined palettes.
  3. Set the ApplicationThemeHelper.ApplicationThemeName property to the predefined palette name and base theme name combination.

Tip

You can use the Theme.CachePaletteThemes property to cache the current palette theme assembly. The cache reduces load times in future application runs.

Inheritance

Object PredefinedThemePalettes

See Also

PredefinedThemePalettes Members

Palettes

DevExpress.Xpf.Core Namespace