Class InputBinding
Implements binding between Input Gesture and command
Inheritance
System.Object
InputBinding
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class InputBinding : Freezable, ICommandSource
Constructors
InputBinding()
Initializes a new instance of the InputBinding class.
Declaration
protected InputBinding()
InputBinding(ICommand, InputGesture)
Initializes a new instance of the InputBinding class.
Declaration
public InputBinding(ICommand command, InputGesture gesture)
Parameters
Type | Name | Description |
---|---|---|
ICommand | command | The command. |
InputGesture | gesture | The gesture. |
Fields
CommandParameterProperty
The command parameter property
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CommandProperty
The command property
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsRepeatEnabledProperty
The is repeat enabled property
Declaration
public static readonly DependencyProperty IsRepeatEnabledProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Command
Gets the command.
Declaration
public ICommand Command { get; set; }
Property Value
Type | Description |
---|---|
ICommand | The command. |
CommandParameter
Gets the command parameter.
Declaration
public object CommandParameter { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The command parameter. |
Gesture
Gets or sets the gesture.
Declaration
public virtual InputGesture Gesture { get; set; }
Property Value
Type | Description |
---|---|
InputGesture | The gesture. |
IsRepeatEnabled
Gets or sets a value indicating whether this instance is repeat enabled.
Declaration
public bool IsRepeatEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|