wpf-devexpress-dot-xpf-dot-core-dot-theme-bce4c50d.md
Registers predefined palette themes.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public static IEnumerable<Theme> RegisterPredefinedPaletteThemes()
Public Shared Function RegisterPredefinedPaletteThemes As IEnumerable(Of Theme)
| Type | Description |
|---|---|
| IEnumerable<Theme> |
A collection which contains registered predefined palette themes.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterPredefinedPaletteThemes() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-mvvm-behaviors-gallery-based-theme-palette-selector/CS/App.xaml.cs#L8
public App() {
Theme.RegisterPredefinedPaletteThemes();
wpf-data-grid-customize-background/CS/App.xaml.cs#L23
Theme.RegisterPredefinedPaletteThemes();
wpf-mvvm-behaviors-gallery-based-theme-palette-selector/VB/App.xaml.vb#L11
Public Sub New()
Call Theme.RegisterPredefinedPaletteThemes()
Dim customPalette = New ThemePalette("CustomPalette")
wpf-data-grid-customize-background/VB/App.xaml.vb#L15
MyBase.OnStartup(e)
Call Theme.RegisterPredefinedPaletteThemes()
ApplicationThemeHelper.UpdateApplicationThemeName()
See Also