Method UpdateShortcut
UpdateShortcut(CommandBindingCollection, string, KeyGesture)
Updates shortcut associated with a particular command.
public void UpdateShortcut(CommandBindingCollection bindings, string commandName, KeyGesture gesture)
Parameters
bindingsCommandBindingCollectionList of the command bindings to find a command.
commandNamestringName of the command o update.
gestureKeyGestureNew input device gesture.