demo to update text

This commit is contained in:
heartacker
2024-03-26 07:01:30 +08:00
parent ecf207c651
commit 3ac16b6c70
2 changed files with 9 additions and 2 deletions

View File

@@ -40,13 +40,15 @@ public partial class NumericUpDownDemoViewModel : ObservableObject
[ObservableProperty] private bool _IsEnable = true;
[ObservableProperty] private string _CommandUpdateText = "Command not Execute";
uint v = 0;
[RelayCommand]
// void Trythis()
void Trythis(uint v)
// void Trythis(object v)
{
System.Diagnostics.Trace.WriteLine(v);
CommandUpdateText = $"Command Exe,CommandParameter={v}";
}