In This Article

MouseWheelGesture Class

Defines a mouse wheel input gesture that can be used to invoke a command.

[TypeConverter(typeof(MouseWheelGestureConverter))]
[ValueSerializer(typeof(MouseWheelGestureValueSerializer))]
public class MouseWheelGesture : InputGesture
Inheritance:
object 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 ModifierKeys

The modifiers.

Properties

Modifiers

Gets or sets the modifier keys associated with this MouseGesture.

public ModifierKeys Modifiers { get; set; }

Property Value

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 InputGesture matches the input associated with the specified InputEventArgs object.

public override bool Matches(object targetElement, InputEventArgs inputEventArgs)
Parameter Type Description
targetElement object

The target of the command.

inputEventArgs InputEventArgs

The input event data to compare this gesture to.

Returns

bool:

true if the gesture matches the input; otherwise, false.

Inherited Members