Class MouseBinding
Implements binding between mouse gesture and command
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class MouseBinding : InputBinding, ICommandSource
Constructors
MouseBinding()
Initializes a new instance of the MouseBinding class.
Declaration
public MouseBinding()
MouseBinding(ICommand, MouseAction, ModifierKeys)
Initializes a new instance of the MouseBinding class.
Declaration
public MouseBinding(ICommand command, MouseAction action, ModifierKeys modifiers)
Parameters
Type | Name | Description |
---|---|---|
ICommand | command | The command. |
MouseAction | action | The action. |
ModifierKeys | modifiers | The modifiers. |
MouseBinding(ICommand, MouseGesture)
Initializes a new instance of the MouseBinding class.
Declaration
public MouseBinding(ICommand command, MouseGesture gesture)
Parameters
Type | Name | Description |
---|---|---|
ICommand | command | The command. |
MouseGesture | gesture | The gesture. |
Fields
ModifiersProperty
The modifiers property
Declaration
public static readonly DependencyProperty ModifiersProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MouseActionProperty
The mouse action property
Declaration
public static readonly DependencyProperty MouseActionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Gesture
Gets or sets the gesture.
Declaration
public override InputGesture Gesture { get; set; }
Property Value
Type | Description |
---|---|
InputGesture | The gesture. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Wrong Input Gesture type. Expected MouseGesture. |
Modifiers
Gets or sets the modifiers.
Declaration
public ModifierKeys Modifiers { get; set; }
Property Value
Type | Description |
---|---|
ModifierKeys | The modifiers. |
MouseAction
Gets or sets the mouse action.
Declaration
public MouseAction MouseAction { get; set; }
Property Value
Type | Description |
---|---|
MouseAction | The mouse action. |