Method TryGet
TryGet(Key, out KeyBinding)
Gets the commands bound with the specified Key.
public bool TryGet(Key key, out KeyBinding binding)
Parameters
key
KeyThe key to check.
binding
KeyBindingWhen this method returns, contains the commands bound with the specified Key, if the Key is found; otherwise, null. This parameter is passed uninitialized.
Returns
TryGet(Key, KeyBindingScope, out KeyBinding)
Gets the commands bound with the specified Key that are scoped to a particular scope.
public bool TryGet(Key key, KeyBindingScope scope, out KeyBinding binding)
Parameters
key
KeyThe key to check.
scope
KeyBindingScopethe scope to filter on
binding
KeyBindingWhen this method returns, contains the commands bound with the specified Key, if the Key is found; otherwise, null. This parameter is passed uninitialized.