ThemeVariantExtensions Class
Provides extension methods for Avalonia.Styling.ThemeVariant and Avalonia.Platform.PlatformThemeVariant.
public static class ThemeVariantExtensions
- Inheritance:
- object object
Methods
IsDark(PlatformThemeVariant)
Tests if a Avalonia.Platform.PlatformThemeVariant is dark.
public static bool IsDark(this PlatformThemeVariant platformThemeVariant)
Parameter | Type | Description |
---|---|---|
platformThemeVariant | PlatformThemeVariant | The Avalonia.Platform.PlatformThemeVariant to test. |
Returns
- bool:
true
if the Avalonia.Platform.PlatformThemeVariant is dark; otherwisefalse
.
IsDark(ThemeVariant)
Tests if a Avalonia.Styling.ThemeVariant is dark.
public static bool IsDark(this ThemeVariant themeVariant)
Parameter | Type | Description |
---|---|---|
themeVariant | ThemeVariant | The Avalonia.Styling.ThemeVariant to test. |
Returns
- bool:
true
if the Avalonia.Styling.ThemeVariant is dark; otherwisefalse
.