Table of Contents

Class KeyBinding

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

KeyBinding - Implements InputBinding (generic InputGesture-Command map) 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/Modifiers directly without going in KeyGesture path. Also it provides the KeyGestureTypeConverter on the Gesture property to have KeyGesture, like Ctrl+X, Alt+V defined in Markup as Gesture="Ctrl+X" working

public class KeyBinding : InputBinding, IBaseObject, IDisposableObject, IDisposable, 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

KeyGesture Override, to ensure type-safety and provide a TypeConverter for KeyGesture

Key

Key

Modifiers

Modifiers