Table of Contents

Class AvaloniaPropertyChangedExtensions

Namespace
Avalonia
Assembly
Avalonia.Base.dll

Provides extensions for AvaloniaPropertyChangedEventArgs.

public static class AvaloniaPropertyChangedExtensions
Inheritance
AvaloniaPropertyChangedExtensions
Inherited Members

Methods

GetNewValue<T>(AvaloniaPropertyChangedEventArgs)

Gets a typed value from NewValue.

public static T GetNewValue<T>(this AvaloniaPropertyChangedEventArgs e)

Parameters

e AvaloniaPropertyChangedEventArgs

The event args.

Returns

T

The value.

Type Parameters

T

The value type.

GetOldAndNewValue<T>(AvaloniaPropertyChangedEventArgs)

Gets a typed value from OldValue and NewValue.

public static (T oldValue, T newValue) GetOldAndNewValue<T>(this AvaloniaPropertyChangedEventArgs e)

Parameters

e AvaloniaPropertyChangedEventArgs

The event args.

Returns

(T oldValue, T newValue)

The value.

Type Parameters

T

The value type.

GetOldValue<T>(AvaloniaPropertyChangedEventArgs)

Gets a typed value from OldValue.

public static T GetOldValue<T>(this AvaloniaPropertyChangedEventArgs e)

Parameters

e AvaloniaPropertyChangedEventArgs

The event args.

Returns

T

The value.

Type Parameters

T

The value type.