Skip to main content
All docs
V24.1

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public static LightweightTheme OverridePalette(
    LightweightTheme basedOn,
    string name,
    bool isPaletteTheme,
    string displayName,
    Dictionary<string, Color> colors
)

Parameters

Name Type Description
basedOn LightweightTheme

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

Type Description
LightweightTheme

The new lightweight theme.

See Also