ICommand myCommand = new Command( async ( o ) => { await Task.Delay( 3000 ); }, ( o ) => { return true; } );
private bool MyCommandCanExecute(object state) { return true; } private void MyCommandExecute(object state) { // Do something... } ... ICommand myCommand = new Command(MyCommandExecute, MyCommandCanExecute);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)