ThemeVariant Class

Specifies a UI theme variant that should be used for the Control and Application types.

Definition

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
[TypeConverterAttribute(typeof(ThemeVariantTypeConverter))]
public sealed class ThemeVariant : IEquatable<ThemeVariant>
Inheritance
Object    ThemeVariant
Implements
IEquatableThemeVariant

Properties

Dark Use the Dark theme variant.
Default Inherit theme variant from the parent. If set on Application, system theme is inherited. Using Default as the ResourceDictionary.Key marks this dictionary as a fallback in case the theme variant or resource key is not found in other theme dictionaries.
InheritVariant Reference to a theme variant which should be used, if resource wasn't found for the requested variant.
Key Key of the theme variant by which variants are compared.
Light Use the Light theme variant.

Methods

Equals(ThemeVariant) 
GetHashCode
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToString
(Overrides ObjectToString)

Operators

See Also