Method InvokeCommand
InvokeCommand<TBindingType>(Command, TBindingType)
Invokes the specified command.
public bool? InvokeCommand<TBindingType>(Command command, TBindingType binding)
Parameters
commandCommandThe command to invoke.
bindingTBindingTypeThe 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, ICommandContext?)
Invokes the specified command.
public bool? InvokeCommand(Command command, ICommandContext? ctx)
Parameters
commandCommandThe command to invoke.
ctxICommandContextThe context to pass 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.
InvokeCommand(Command)
Invokes the specified command without context.
public bool? InvokeCommand(Command command)
Parameters
commandCommandThe command to invoke.