LightweightTheme.CreateSystemTheme(String, LightweightTheme, LightweightTheme, LightweightTheme, Func<Color, Dictionary<String, Color>>, Func<Color, Dictionary<String, Color>>) Method
In This Article
Creates a new lightweight theme that reads the Windows app mode.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public static LightweightSystemTheme CreateSystemTheme(
string name,
LightweightTheme light,
LightweightTheme dark,
LightweightTheme highContrast,
Func<Color, Dictionary<string, Color>> getAccentColorsLight = null,
Func<Color, Dictionary<string, Color>> getAccentColorsDark = null
)
#Parameters
Name | Type | Description |
---|---|---|
name | String | The new theme name. |
light | Lightweight |
The theme applied for the Light app mode. |
dark | Lightweight |
The theme applied for the Dark app mode. |
high |
Lightweight |
The theme applied if the High Contrast option is enabled. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
get |
Func<Color, Dictionary<String, Color>> | null | The method that returns accent colors for the Light app mode. |
get |
Func<Color, Dictionary<String, Color>> | null | The method that returns accent colors for the Dark app mode. |
#Returns
Type | Description |
---|---|
Lightweight |
The new system lightweight theme. |
See Also