Method InvokeCommand
InvokeCommand<TBindingType>(Command, TBindingType)
Invokes the specified command.
public bool? InvokeCommand<TBindingType>(Command command, TBindingType binding)
Parameters
command
CommandThe command to invoke.
binding
TBindingTypeThe binding that caused the invocation, if any. This will be passed as context with the command.
Returns
- bool?
null if no command was found; input processing should continue. false if the command was invoked and was not handled (or cancelled); input processing should continue. true if the command was invoked the command was handled (or cancelled); input processing should stop.
Type Parameters
TBindingType
InvokeCommand(Command)
Invokes the specified command without context.
public bool? InvokeCommand(Command command)
Parameters
command
CommandThe command to invoke.