LightweightTheme.CreateBasedOn(LightweightTheme, String, LightweightThemeAssembly, Func<LightweightTheme, ResourceDictionary>) Method
In This Article
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 |
---|---|---|
based |
Lightweight |
The base theme. |
name | String | The new theme name. |
assembly | Lightweight |
The new theme assembly. |
create |
Func<Lightweight |
The method that creates a color palette. |
#Returns
Type | Description |
---|---|
Lightweight |
The new lightweight theme. |
See Also