Table of Contents

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 AvaloniaObject

The 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 BindingPriority

The 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

object

GetOldValue()

protected override object? GetOldValue()

Returns

object

GetProperty()

protected override AvaloniaProperty GetProperty()

Returns

AvaloniaProperty