Back to Devexpress

LightweightTheme.CreateSystemTheme(String, LightweightTheme, LightweightTheme, LightweightTheme, Func<Color, Dictionary<String, Color>>, Func<Color, Dictionary<String, Color>>) Method

wpf-devexpress-dot-xpf-dot-core-dot-lightweighttheme-dot-2-j8.md

latest4.1 KB
Original Source

LightweightTheme.CreateSystemTheme(String, LightweightTheme, LightweightTheme, LightweightTheme, Func<Color, Dictionary<String, Color>>, Func<Color, Dictionary<String, Color>>) Method

Creates a new lightweight theme that reads the Windows app mode.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
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
)
vb
Public Shared Function CreateSystemTheme(
    name As String,
    light As LightweightTheme,
    dark As LightweightTheme,
    highContrast As LightweightTheme,
    getAccentColorsLight As Func(Of Color, Dictionary(Of String, Color)) = Nothing,
    getAccentColorsDark As Func(Of Color, Dictionary(Of String, Color)) = Nothing
) As LightweightSystemTheme

Parameters

NameTypeDescription
nameString

The new theme name.

| | light | LightweightTheme |

The theme applied for the Light app mode.

| | dark | LightweightTheme |

The theme applied for the Dark app mode.

| | highContrast | LightweightTheme |

The theme applied if the High Contrast option is enabled.

|

Optional Parameters

NameTypeDefaultDescription
getAccentColorsLightFunc<Color, Dictionary<String, Color>>null

The method that returns accent colors for the Light app mode.

| | getAccentColorsDark | Func<Color, Dictionary<String, Color>> | null |

The method that returns accent colors for the Dark app mode.

|

Returns

TypeDescription
LightweightSystemTheme

The new system lightweight theme.

|

See Also

LightweightTheme Class

LightweightTheme Members

DevExpress.Xpf.Core Namespace