IThemeVariantProvider Interface
Definition
Resource provider with theme variant awareness. Can be used with Avalonia.Controls.IResourceDictionary.ThemeDictionaries.
public interface IThemeVariantProvider
Remarks
This is a helper interface for the XAML compiler to make Key property accessibly by the markup extensions. Which means, it can only be used with ResourceDictionaries and markup extensions in the XAML code.
Properties
| Name | Description |
|---|---|
| Key | Key property set by the compiler. |
Key Property
Key property set by the compiler.
public Avalonia.Styling.ThemeVariant Key { get; set; }