This commit is contained in:
heartacker
2024-04-05 19:59:11 +08:00
parent 4a192d24c5
commit 171ca7eef9

View File

@@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Diagnostics;
using System.Globalization;
using System.Net.Mime;
using System.Windows.Input;
@@ -318,6 +318,7 @@ public abstract class NumericUpDown : TemplatedControl, IClearControl
protected abstract void SetValidSpinDirection();
protected abstract void Increase();
protected abstract void Decrease();
protected virtual bool CommitInput(bool forceTextUpdate = false)
@@ -466,7 +467,7 @@ public abstract class NumericUpDownBase<T> : NumericUpDown where T : struct, ICo
}
public static readonly StyledProperty<ICommand?> CommandProperty = AvaloniaProperty.Register<Pagination, ICommand?>(
public static readonly StyledProperty<ICommand?> CommandProperty = AvaloniaProperty.Register<NumericUpDownBase<T>, ICommand?>(
nameof(Command));
public ICommand? Command
@@ -476,7 +477,7 @@ public abstract class NumericUpDownBase<T> : NumericUpDown where T : struct, ICo
}
public static readonly StyledProperty<object?> CommandParameterProperty =
AvaloniaProperty.Register<Pagination, object?>(nameof(CommandParameter));
AvaloniaProperty.Register<NumericUpDownBase<T>, object?>(nameof(CommandParameter));
public object? CommandParameter
{