Skip to main content

Setter Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
Source:Setter.cs

A setter for a Avalonia.Styling.Style.

public class Setter

Inheritance: object -> SetterBase -> Setter

Implements: IAnimationSetter, IValueEntry, ISetterInstance

Remarks

A Avalonia.Styling.Setter is used to set a Avalonia.AvaloniaProperty value on a Avalonia.AvaloniaObject depending on a condition.

Constructors

NameDescription
Setter (2 overloads)Initializes a new instance of the Avalonia.Styling.Setter class.

Setter overloads

Setter Constructor

Initializes a new instance of the Avalonia.Styling.Setter class.

public Setter()

Setter Constructor

Initializes a new instance of the Avalonia.Styling.Setter class.

public Setter(Avalonia.AvaloniaProperty property, object value)
Parameters

property Avalonia.AvaloniaProperty

The property to set.

value object

The property value.

Methods

NameDescription
ToStringNo summary available.

ToString Method

public string ToString()

Returns

string

Properties

NameDescription
PropertyGets or sets the property to set.
ValueGets or sets the property value.

Property Property

Gets or sets the property to set.

public Avalonia.AvaloniaProperty Property { get; set; }

Value Property

Gets or sets the property value.

public object Value { get; set; }