Show / Hide Table of Contents

Class KeyBinding

Implements input binding for keyboard keys

Inheritance
System.Object
DependencyObject
Freezable
InputBinding
KeyBinding
Implements
ICommandSource
Inherited Members
InputBinding.CommandProperty
InputBinding.Command
InputBinding.CommandParameterProperty
InputBinding.CommandParameter
InputBinding.IsRepeatEnabledProperty
InputBinding.IsRepeatEnabled
Freezable.IsFrozen
Freezable.Parent
Freezable.Changed
Freezable.Freeze()
Freezable.OnPropertyChanged(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class KeyBinding : InputBinding, ICommandSource

Constructors

KeyBinding()

Initializes a new instance of the KeyBinding class.

Declaration
public KeyBinding()

KeyBinding(ICommand, KeyCode, ModifierKeys)

Initializes a new instance of the KeyBinding class.

Declaration
public KeyBinding(ICommand command, KeyCode key, ModifierKeys modifiers)
Parameters
Type Name Description
ICommand command

The command.

EmptyKeys.UserInterface.Input.KeyCode key

The key.

ModifierKeys modifiers

The modifiers.

KeyBinding(ICommand, KeyGesture)

Initializes a new instance of the KeyBinding class.

Declaration
public KeyBinding(ICommand command, KeyGesture gesture)
Parameters
Type Name Description
ICommand command

The command.

KeyGesture gesture

The gesture.

Fields

KeyProperty

The key property

Declaration
public static readonly DependencyProperty KeyProperty
Field Value
Type Description
DependencyProperty

ModifiersProperty

The modifiers property

Declaration
public static readonly DependencyProperty ModifiersProperty
Field Value
Type Description
DependencyProperty

Properties

Gesture

Gets or sets the gesture.

Declaration
public override InputGesture Gesture { get; set; }
Property Value
Type Description
InputGesture

The gesture.

Overrides
InputBinding.Gesture
Exceptions
Type Condition
System.ArgumentException

Wrong Input Gesture type. Expected KeyGesture.

Key

Gets or sets the key.

Declaration
public KeyCode Key { get; set; }
Property Value
Type Description
EmptyKeys.UserInterface.Input.KeyCode

The key.

Modifiers

Gets or sets the modifiers.

Declaration
public ModifierKeys Modifiers { get; set; }
Property Value
Type Description
ModifierKeys

The modifiers.

Implements

ICommandSource
Back to top Generated by DocFX