Method IsKeyBindingValid
IsKeyBindingValid(Key, ModifierKeys)
Gets whether key is a valid key gesture for this control.
public virtual bool IsKeyBindingValid(Key key, ModifierKeys modifiers)
Parameters
key
KeyKey.
modifiers
ModifierKeysKey modifiers.
Returns
- bool
True if ValidateKeyBinding is False; otherwise returns result of IsValid(Key, ModifierKeys) call.
Remarks
Override this method in order to allow/supress allowed keys for this control used in ExecuteKeyBinding(Key, ModifierKeys, bool) method.