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
DefaultLightTheme
Default light theme.
public const string DefaultLightTheme = "Win11Light"
Field Value
DefaultTheme
Default theme.
public const string DefaultTheme = "VS2019Dark"
Field Value
Methods
ApplyDefaultTheme(bool)
Initialize DevExpress.Xpf.Core.ApplicationThemeHelper.ApplicationThemeName.
public static void ApplyDefaultTheme(bool isDark = true)
Parameters
isDark
boolDark 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
stringDevexpress theme.
Returns
- bool
Check result.