Table of Contents

Class Style

Namespace
Avalonia.Styling
Assembly
Avalonia.Base.dll

Defines a style.

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

Constructors

Style()

Initializes a new instance of the Style class.

public Style()

Style(Func<Selector?, Selector>)

Initializes a new instance of the Style class.

public Style(Func<Selector?, Selector> selector)

Parameters

selector Func<Selector, Selector>

The style selector.

Properties

Selector

Gets or sets the style's selector.

public Selector? Selector { get; set; }

Property Value

Selector

Methods

ToString()

Returns a string representation of the style.

public override string ToString()

Returns

string

A string representation of the style.