Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Creates a new color palette based on the existing palette.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public static ResourceDictionary OverridePalette(
    ResourceDictionary basePalette,
    Dictionary<string, Color> colors
)

#Parameters

Name Type Description
basePalette ResourceDictionary

The base color palette.

colors Dictionary<String, Color>

New palette colors.

#Returns

Type Description
ResourceDictionary

The new color palette.

See Also