Class InputBinding
Used to specify the binding between InputGesture and ICommand.
public class InputBinding : BaseObjectWithAttr, IBaseObjectWithId, IBaseObject, ICommandSource
- Inheritance
-
InputBinding
- Implements
- Derived
Constructors
- InputBinding()
Initializes a new instance of the InputBinding class.
- InputBinding(ICommand, InputGesture)
Initializes a new instance of the InputBinding class with the specified parameters.
Properties
- Command
Gets or sets command associated with the object.
- CommandParameter
Gets or sets a parameter for the command.
- CommandTarget
Gets or sets target where the command should be raised.
- Gesture
InputGesture associated with the Command.
- IsActive
Gets or sets whether this binding is active. If binding is not active, it is ignored.
Methods
- Execute()
Executes Command with the specified CommandParameter.
- HasKey(Key, ModifierKeys)
Gets whether Gesture has the specified key and key modifiers.