Table of Contents

Method IsKeyBindingValid

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsKeyBindingValid(Key, ModifierKeys)

Gets whether key is a valid key gesture for this control.

public virtual bool IsKeyBindingValid(Key key, ModifierKeys modifiers)

Parameters

key Key

Key.

modifiers ModifierKeys

Key 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.