Table of Contents

Class ThemeExtensions

Namespace
StockSharp.Xaml
Assembly
StockSharp.Xaml.dll

Extensions for DevExpress.Xpf.Core.Theme.

public static class ThemeExtensions
Inheritance
ThemeExtensions
Inherited Members

Fields

DefaultDarkTheme

Default dark theme.

public const string DefaultDarkTheme = "VS2019Dark"

Field Value

string

DefaultLightTheme

Default light theme.

public const string DefaultLightTheme = "Win11Light"

Field Value

string

DefaultTheme

Default theme.

public const string DefaultTheme = "VS2019Dark"

Field Value

string

Methods

ApplyDefaultTheme(bool)

Initialize DevExpress.Xpf.Core.ApplicationThemeHelper.ApplicationThemeName.

public static void ApplyDefaultTheme(bool isDark = true)

Parameters

isDark bool

Dark theme.

Invert()

Invert current theme.

public static void Invert()

IsCurrDark()

Determines the DevExpress.Xpf.Core.ApplicationThemeHelper.ApplicationThemeName is dark.

public static bool IsCurrDark()

Returns

bool

Check result.

IsDark(string)

Determines the appTheme is dark.

public static bool IsDark(this string appTheme)

Parameters

appTheme string

Devexpress theme.

Returns

bool

Check result.