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

@@ -6,6 +6,7 @@ using System.Runtime.Serialization;
using System.Threading.Tasks;
using ReactiveUI;
using ReactiveUI.SourceGenerators;
using Terminal.Gui;
namespace ReactiveExample;
@@ -50,7 +51,7 @@ public partial class LoginViewModel : ReactiveObject
_isValidHelper = canLogin.ToProperty (this, x => x.IsValid);
Login = ReactiveCommand.CreateFromTask<HandledEventArgs>
Login = ReactiveCommand.CreateFromTask<CommandEventArgs>
(
e => Task.Delay (TimeSpan.FromSeconds (1)),
canLogin
@@ -76,8 +77,8 @@ public partial class LoginViewModel : ReactiveObject
}
[ReactiveCommand]
public void Clear (HandledEventArgs args) { }
public void Clear (CommandEventArgs args) { }
[IgnoreDataMember]
public ReactiveCommand<HandledEventArgs, Unit> Login { get; }
public ReactiveCommand<CommandEventArgs, Unit> Login { get; }
}