You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
CanExecute can be overridden just like in normal commands.
publicclassAlertCommandAsync:ViewModelCommandAsync<AwesomeViewModel>{protectedoverrideasyncTaskExecutionAsync(AwesomeViewModelparameter){awaitTask.Run(()=>{System.Threading.Thread.Sleep(2000);System.Windows.MessageBox.Show("You clicked that button two seconds ago.");});}}
Call ExecuteAsync to execute your command asynchronously.
Calling Execute executes your command in a fire and forget kind of way. You will have to override HandleUncaughtException, if you wish for thrown exceptions to be handled.