Fixes #4023 - Changes CommandEventArgs to be based on HandledEventArgs instead of CancelEventArgs (#4054)

* touching publish.yml

* CancelEventArgs->HandledEventArgs

* Fixed Handled issues
This commit is contained in:
Tig
2025-05-09 09:04:38 -06:00
committed by GitHub
parent f98e460048
commit e0de73ab83
51 changed files with 258 additions and 226 deletions

View File

@@ -23,15 +23,15 @@ internal partial class LoginView : IRecipient<Message<LoginActions>>
{
if (!ViewModel.CanLogin) { return; }
ViewModel.LoginCommand.Execute (null);
// Anytime Accepting is handled, make sure to set e.Cancel to false.
e.Cancel = false;
// When Accepting is handled, set e.Handled to true to prevent further processing.
e.Handled = true;
};
clearButton.Accepting += (_, e) =>
{
ViewModel.ClearCommand.Execute (null);
// Anytime Accepting is handled, make sure to set e.Cancel to false.
e.Cancel = false;
// When Accepting is handled, set e.Handled to true to prevent further processing.
e.Handled = true;
};
Initialized += (_, _) => { ViewModel.Initialized (); };