public BindingCommand <T> Command <T>(string name, ICommand <T> cmd) { var binding = new BindingCommand <T>(name, this); binding.Set(cmd); return(binding); }
public BindingCommand <T> Command <T>(string name, Action <T> onViewEvent, Func <bool> canExecute = null) { var binding = new BindingCommand <T>(name, this); binding.Set(new DelegateCommand <T>(onViewEvent, canExecute)); return(binding); }