Class KeyBinding
Binds a KeyGesture to a RoutedCommand (or another ICommand implementation).
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class KeyBinding : InputBinding, ICommandSource
Constructors
KeyBinding()
KeyBinding(ICommand, Key, ModifierKeys)
Initializes a new instance of the KeyBinding class.
Declaration
public KeyBinding(ICommand command, Key key, ModifierKeys modifiers)
Parameters
System.Windows.Input.ICommand
command
The command. |
System.Windows.Input.Key
key
The key. |
System.Windows.Input.ModifierKeys
modifiers
The modifiers. |
KeyBinding(ICommand, KeyGesture)
Initializes a new instance of the KeyBinding class.
Declaration
public KeyBinding(ICommand command, KeyGesture gesture)
Parameters
System.Windows.Input.ICommand
command
The command. |
KeyGesture
gesture
The gesture. |
Properties
Gesture
Gets or sets the InputGesture associated with this input binding.
Declaration
public override InputGesture Gesture { get; set; }
Property Value
InputGesture
The gesture. |
Overrides
Key
Gets or sets the Key of the KeyGesture associated with this KeyBinding.
Declaration
public Key Key { get; set; }
Property Value
System.Windows.Input.Key
The key. |
Modifiers
Gets or sets the ModifierKeys of the KeyGesture associated with this KeyBinding.
Declaration
public ModifierKeys Modifiers { get; set; }
Property Value
System.Windows.Input.ModifierKeys
The modifiers. |