Esempio n. 1
0
        protected override void Invoke(object parameter)
        {
            if (AssociatedObject != null)
            {
                var command = ResolveCommand();

                if (CommandParameterConverter != null)
                {
                    parameter = CommandParameterConverter.Convert(parameter, typeof(object), null,
                                                                  CultureInfo.CurrentCulture);
                }

                if (command?.CanExecute(parameter) == true)
                {
                    command.Execute(parameter);
                }
            }
        }
Esempio n. 2
0
 public CommandParameterConverterTest()
 {
     converterSubject = new CommandParameterConverter();
 }