MouseWheelGesture Class
Defines a mouse wheel input gesture that can be used to invoke a command.
public class MouseWheelGesture : InputGesture
- Inheritance:
- System.Object System.Windows.Input.InputGesture Object
Constructors
MouseWheelGesture()
Initializes a new instance of the MouseWheelGesture class.
public MouseWheelGesture()
MouseWheelGesture(MouseWheelAction)
Initializes a new instance of the MouseWheelGesture class.
public MouseWheelGesture(MouseWheelAction mouseWheelAction)
Parameter | Type | Description |
---|---|---|
mouseWheelAction | MouseWheelAction | The mouse wheel action. |
MouseWheelGesture(MouseWheelAction, ModifierKeys)
Initializes a new instance of the MouseWheelGesture class.
public MouseWheelGesture(MouseWheelAction mouseWheelAction, ModifierKeys modifiers)
Parameter | Type | Description |
---|---|---|
mouseWheelAction | MouseWheelAction | The mouse wheel action. |
modifiers | System.Windows.Input.ModifierKeys | The modifiers. |
Properties
Modifiers
Gets or sets the modifier keys associated with this MouseGesture.
public ModifierKeys Modifiers { get; set; }
Property Value
- System.Windows.Input.ModifierKeys:
One or more modifier keys, defined by the System.Windows.Input.ModifierKeys enumeration, delimited with a "+" character.
MouseWheelAction
Gets or sets the MouseWheelAction associated with this gesture.
public MouseWheelAction MouseWheelAction { get; set; }
Property Value
- MouseWheelAction:
The mouse wheel action associated with this gesture. The default value is
None
.
Methods
Matches(Object, InputEventArgs)
When overridden in a derived class, determines whether the specified System.Windows.Input.InputGesture matches the input associated with the specified System.Windows.Input.InputEventArgs object.
public override bool Matches(object targetElement, InputEventArgs inputEventArgs)
Parameter | Type | Description |
---|---|---|
targetElement | System.Object | The target of the command. |
inputEventArgs | System.Windows.Input.InputEventArgs | The input event data to compare this gesture to. |
Returns
- System.Boolean:
true
if the gesture matches the input; otherwise,false
.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()