Class AvaloniaPropertyChangedEventArgs<T>
- Namespace
- Avalonia
- Assembly
- Avalonia.Base.dll
Provides information for an Avalonia property change.
public class AvaloniaPropertyChangedEventArgs<T> : AvaloniaPropertyChangedEventArgs
Type Parameters
T
- Inheritance
-
AvaloniaPropertyChangedEventArgs<T>
- Inherited Members
- Extension Methods
Constructors
AvaloniaPropertyChangedEventArgs(AvaloniaObject, AvaloniaProperty<T>, Optional<T>, BindingValue<T>, BindingPriority)
Initializes a new instance of the AvaloniaPropertyChangedEventArgs class.
public AvaloniaPropertyChangedEventArgs(AvaloniaObject sender, AvaloniaProperty<T> property, Optional<T> oldValue, BindingValue<T> newValue, BindingPriority priority)
Parameters
sender
AvaloniaObjectThe object that the property changed on.
property
AvaloniaProperty<T>The property that changed.
oldValue
Optional<T>The old value of the property.
newValue
BindingValue<T>The new value of the property.
priority
BindingPriorityThe priority of the binding that produced the value.
Properties
NewValue
Gets the new value of the property.
public BindingValue<T> NewValue { get; }
Property Value
- BindingValue<T>
OldValue
Gets the old value of the property.
public Optional<T> OldValue { get; }
Property Value
- Optional<T>
Property
Gets the property that changed.
public AvaloniaProperty<T> Property { get; }
Property Value
- AvaloniaProperty<T>
The property that changed.
Methods
GetNewValue()
protected override object? GetNewValue()
Returns
GetOldValue()
protected override object? GetOldValue()
Returns
GetProperty()
protected override AvaloniaProperty GetProperty()