In This Article

ControlThemeResourceDictionaryBase Class

An abstract base class for a Avalonia.Controls.ResourceDictionary that contains control themes.

public abstract class ControlThemeResourceDictionaryBase : ResourceDictionary, IResourceDictionary, IThemeVariantProvider, IResourceProvider, IResourceNode
Inheritance:
object AvaloniaObject ResourceProvider ResourceDictionary object
Implements:
IResourceDictionary IThemeVariantProvider IResourceProvider IResourceNode

Remarks

For internal use only.

Constructors

ControlThemeResourceDictionaryBase()

Initializes an instance of the class.

protected ControlThemeResourceDictionaryBase()

Methods

AddControlTheme(IResourceNode, Type, ControlThemeKind)

Adds a Avalonia.Styling.ControlTheme for the specified control Type that is based on a control theme indicated by ControlThemeKind.

protected void AddControlTheme(IResourceNode owner, Type controlType, ControlThemeKind kind)
Parameter Type Description
owner IResourceNode

The Avalonia.Controls.IResourceHost in which to search for the base Avalonia.Styling.ControlTheme.

controlType Type

The Type of control.

kind ControlThemeKind

The kind of base control theme.

Inherited Members

Extension Methods