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 an instance of the class.

public MouseWheelGesture()

MouseWheelGesture(MouseWheelAction)

Initializes an instance of the class.

public MouseWheelGesture(MouseWheelAction mouseWheelAction)
Parameter Type Description
mouseWheelAction MouseWheelAction

The mouse wheel action.

MouseWheelGesture(MouseWheelAction, ModifierKeys)

Initializes an instance of the class.

public MouseWheelGesture(MouseWheelAction mouseWheelAction, ModifierKeys modifiers)
Parameter Type Description
mouseWheelAction MouseWheelAction

The mouse wheel action.

modifiers ModifierKeys

The modifiers.

Properties

Modifiers

The modifier keys associated with this MouseGesture.

public ModifierKeys Modifiers { get; set; }

Property Value

ModifierKeys

MouseWheelAction

The MouseWheelAction associated with this gesture.

public MouseWheelAction MouseWheelAction { get; set; }

Property Value

MouseWheelAction

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

Extension Methods