ClassKeyBinding
Binds a KeyGesture to a RoutedCommand (or another ICommand implementation).
Definition
Namespace:Telerik.UI.Xaml.Controls
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class KeyBinding : InputBinding, ICommandSource
Inheritance: objectInputBindingKeyBinding
Implements:
Inherited Members
Constructors
KeyBinding()
Initializes a new instance of the KeyBinding class.
Declaration
public KeyBinding()
KeyBinding(ICommand, KeyGesture)
Initializes a new instance of the KeyBinding class.
Declaration
public KeyBinding(ICommand command, KeyGesture gesture)
Parameters
command
The command.
gesture
The gesture.
KeyBinding(ICommand, VirtualKey, VirtualKeyModifiers)
Initializes a new instance of the KeyBinding class.
Declaration
public KeyBinding(ICommand command, VirtualKey key, VirtualKeyModifiers modifiers)
Parameters
command
The command.
key
VirtualKey
The key.
modifiers
VirtualKeyModifiers
The modifiers.
Properties
Gesture
Gets or sets the InputGesture associated with this input binding.
Declaration
[TypeConverter(typeof(KeyGestureConverter))]
public override InputGesture Gesture { get; set; }
Property Value
The gesture.
Overrides
Key
Gets or sets the Key of the KeyGesture associated with this KeyBinding.
Declaration
public VirtualKey Key { get; set; }
Property Value
VirtualKey
The key.
Modifiers
Gets or sets the ModifierKeys of the KeyGesture associated with this KeyBinding.
Declaration
public VirtualKeyModifiers Modifiers { get; set; }
Property Value
VirtualKeyModifiers
The modifiers.