Table of Contents

Class ControlTheme

Namespace
Avalonia.Styling
Assembly
Avalonia.Base.dll

Defines a switchable theme for a control.

public class ControlTheme : StyleBase, INotifyPropertyChanged, IStyle, IResourceProvider, IResourceNode
Inheritance
ControlTheme
Implements
Inherited Members
Extension Methods

Constructors

ControlTheme()

Initializes a new instance of the ControlTheme class.

public ControlTheme()

ControlTheme(Type)

Initializes a new instance of the ControlTheme class.

public ControlTheme(Type targetType)

Parameters

targetType Type

The value for TargetType.

Properties

BasedOn

Gets or sets a control theme that is the basis of the current theme.

public ControlTheme? BasedOn { get; set; }

Property Value

ControlTheme

TargetType

Gets or sets the type for which this control theme is intended.

public Type? TargetType { get; set; }

Property Value

Type

Methods

ToString()

public override string ToString()

Returns

string