Back to Devexpress

LightweightTheme.OverridePalette(LightweightTheme, String, Boolean, String, Dictionary<String, Color>) Method

wpf-devexpress-dot-xpf-dot-core-dot-lightweighttheme-dot-overridepalette-x28-lightweighttheme-string-boolean-string-dictionary-string-color-x29.md

latest2.7 KB
Original Source

LightweightTheme.OverridePalette(LightweightTheme, String, Boolean, String, Dictionary<String, Color>) Method

Creates a new lightweight theme with a custom color palette.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static LightweightTheme OverridePalette(
    LightweightTheme basedOn,
    string name,
    bool isPaletteTheme,
    string displayName,
    Dictionary<string, Color> colors
)
vb
Public Shared Function OverridePalette(
    basedOn As LightweightTheme,
    name As String,
    isPaletteTheme As Boolean,
    displayName As String,
    colors As Dictionary(Of String, Color)
) As LightweightTheme

Parameters

NameTypeDescription
basedOnLightweightTheme

The base theme.

| | name | String |

The new theme Name.

| | isPaletteTheme | Boolean |

true to create a new palette theme; otherwise, false.

| | displayName | String |

The new theme DisplayName.

| | colors | Dictionary<String, Color> |

New palette colors.

|

Returns

TypeDescription
LightweightTheme

The new lightweight theme.

|

See Also

LightweightTheme Class

LightweightTheme Members

DevExpress.Xpf.Core Namespace