Esempio n. 1
0
        public BindingCommand <T> Command <T>(string name, ICommand <T> cmd)
        {
            var binding = new BindingCommand <T>(name, this);

            binding.Set(cmd);
            return(binding);
        }
Esempio n. 2
0
        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);
        }