Table of Contents

Class KeyBinding

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

KeyBinding acts like a map for KeyGesture and commands. Most of the logic is in InputBinding and KeyGesture, this only facilitates user to add key and modifiers directly without going in KeyGesture path. Also it provides the type converter on the Gesture property.

public class KeyBinding : InputBinding, IBaseObjectWithId, IBaseObject, ICommandSource
Inheritance
KeyBinding
Implements

Constructors

KeyBinding()

Initializes a new instance of the KeyBinding class.

KeyBinding(ICommand, Key, ModifierKeys)

Initializes a new instance of the KeyBinding class.

KeyBinding(ICommand, KeyGesture)

Initializes a new instance of the KeyBinding class.

Properties

Gesture

InputGesture associated with the Command.

Key

Gets or sets key.

Modifiers

Gets or sets key modifiers.

Methods

HasKey(Key, ModifierKeys)

Gets whether Gesture has the specified key and key modifiers.