Files
Ursa.Avalonia/src/Ursa/Controls/NumericUpDown/ValueChangedEventArgs.cs
2024-01-14 22:11:23 +08:00

15 lines
389 B
C#

using Avalonia.Interactivity;
namespace Ursa.Controls;
public class ValueChangedEventArgs<T>: RoutedEventArgs where T: struct, IComparable<T>
{
public ValueChangedEventArgs(RoutedEvent routedEvent, T? oldValue, T? newValue): base(routedEvent)
{
OldValue = oldValue;
NewValue = newValue;
}
public T? OldValue { get; }
public T? NewValue { get; }
}