Back to Devexpress

Theme.RegisterPredefinedPaletteThemes() Method

wpf-devexpress-dot-xpf-dot-core-dot-theme-bce4c50d.md

latest2.9 KB
Original Source

Theme.RegisterPredefinedPaletteThemes() Method

Registers predefined palette themes.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static IEnumerable<Theme> RegisterPredefinedPaletteThemes()
vb
Public Shared Function RegisterPredefinedPaletteThemes As IEnumerable(Of Theme)

Returns

TypeDescription
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

csharp
public App() {
    Theme.RegisterPredefinedPaletteThemes();

wpf-data-grid-customize-background/CS/App.xaml.cs#L23

csharp
Theme.RegisterPredefinedPaletteThemes();

wpf-mvvm-behaviors-gallery-based-theme-palette-selector/VB/App.xaml.vb#L11

vb
Public Sub New()
    Call Theme.RegisterPredefinedPaletteThemes()
    Dim customPalette = New ThemePalette("CustomPalette")

wpf-data-grid-customize-background/VB/App.xaml.vb#L15

vb
MyBase.OnStartup(e)
Call Theme.RegisterPredefinedPaletteThemes()
ApplicationThemeHelper.UpdateApplicationThemeName()

See Also

Theme Class

Theme Members

DevExpress.Xpf.Core Namespace