Setter Class

Summary

A setter for a Style.
Namespace
Avalonia.Styling
Interfaces
Base Types
  • object
graph TD Base0["object"]-->Type Interface0["ISetter"]-.->Type click Interface0 "/api/Avalonia.Styling/ISetter" Interface1["IAnimationSetter"]-.->Type click Interface1 "/api/Avalonia.Animation/IAnimationSetter" Type["Setter"] class Type type-node

Syntax

public class Setter : ISetter, IAnimationSetter

Remarks

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

Constructors

Name Summary
Setter() Initializes a new instance of the Setter class.
Setter(AvaloniaProperty, object) Initializes a new instance of the Setter class.

Properties

Name Value Summary
Property AvaloniaProperty
Gets or sets the property to set.
Value object
Gets or sets the property value.

Methods

Name Value Summary
Apply(IStyle, IStyleable, IObservable<bool>) IDisposable
Applies the setter to a control.