GetOldAndNewValue<T> Method
Gets a typed value from OldValue and NewValue.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static (T , T ) GetOldAndNewValue<T>(
this AvaloniaPropertyChangedEventArgs e
)
<ExtensionAttribute>
Public Shared Function GetOldAndNewValue(Of T) (
e As AvaloniaPropertyChangedEventArgs
) As ( As T, As T)
[<ExtensionAttribute>]
static member GetOldAndNewValue :
e : AvaloniaPropertyChangedEventArgs -> ValueTuple<'T, 'T>
Parameters
- AvaloniaPropertyChangedEventArgs
- The event args.
Type Parameters
- The value type.
Return Value
ValueTuple(T, T)
The value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type AvaloniaPropertyChangedEventArgs. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).