Beispiel #1
0
 public static ICommand GetCommand <T>(this MvxNavigatingObject viewModel, Func <T, Task> execute, Func <T, bool> canExecute = null)
 {
     return(new AsyncCommand <T>(execute, canExecute));
 }
 public static ServicesExtensionPoint Services(this MvxNavigatingObject navigatingObject)
 {
     return(new ServicesExtensionPoint());
 }
Beispiel #3
0
 public static ICommand GetCommand <T>(this MvxNavigatingObject viewModel, Action <T> execute, Func <T, bool> canExecute = null, bool async = true)
 {
     return(async
                         ? new AsyncCommand <T>(WrapInTask(execute), canExecute)
                         : (ICommand) new MvxCommand <T>(execute, canExecute));
 }