Skip to main content

IThemeVariantProvider Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia

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

NameDescription
KeyKey property set by the compiler.

Key Property

Key property set by the compiler.

public Avalonia.Styling.ThemeVariant Key { get; set; }