Table of Contents

Interface IThemeVariantProvider

Namespace
Avalonia.Controls
Assembly
Avalonia.Base.dll

Resource provider with theme variant awareness. Can be used with ThemeDictionaries.

public interface IThemeVariantProvider : IResourceProvider, IResourceNode
Inherited Members
Extension Methods

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

Key

Key property set by the compiler.

ThemeVariant? Key { get; set; }

Property Value

ThemeVariant