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.CreateBasedOn(LightweightTheme, String, LightweightThemeAssembly, Func<LightweightTheme, ResourceDictionary>) Method

Creates a new lightweight theme based on an existing theme.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public static LightweightTheme CreateBasedOn(
    LightweightTheme basedOn,
    string name,
    LightweightThemeAssembly assembly,
    Func<LightweightTheme, ResourceDictionary> createPalette
)

#Parameters

Name Type Description
basedOn LightweightTheme

The base theme.

name String

The new theme name.

assembly LightweightThemeAssembly

The new theme assembly.

createPalette Func<LightweightTheme, ResourceDictionary>

The method that creates a color palette.

#Returns

Type Description
LightweightTheme

The new lightweight theme.

See Also