KeyBinding Constructor (ICommand^, KeyGesture^)
.NET Framework (current version)
Initializes a new instance of the KeyBinding class using the specified ICommand and KeyGesture.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- command
-
Type:
System.Windows.Input::ICommand^
The command to associate with gesture.
- gesture
-
Type:
System.Windows.Input::KeyGesture^
The key combination to associate with command.
| Exception | Condition |
|---|---|
| ArgumentNullException | command or gesture is null. |
.NET Framework
Available since 3.0
Available since 3.0
Show: