This commit is contained in:
heartacker
2024-03-25 23:49:49 +08:00
parent 849ae9e302
commit ecf207c651
2 changed files with 12 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
using Avalonia.Controls;
using Avalonia.Layout;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System;
using System.Globalization;
using Ursa.Controls;
@@ -39,6 +40,15 @@ public partial class NumericUpDownDemoViewModel : ObservableObject
[ObservableProperty] private bool _IsEnable = true;
uint v = 0;
[RelayCommand]
// void Trythis()
void Trythis(uint v)
// void Trythis(object v)
{
System.Diagnostics.Trace.WriteLine(v);
}
public NumericUpDownDemoViewModel()
{
@@ -65,7 +75,7 @@ public partial class NumericUpDownDemoViewModel : ObservableObject
partial void OnValueChanging(uint oldValue, uint newValue)
{
Console.WriteLine(oldValue);
// Console.WriteLine(oldValue);
}
}