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); } } }
public CommandParameterConverterTest() { converterSubject = new CommandParameterConverter(); }