Table of Contents

Class MouseKeyGesture

Namespace: RichCanvas.Gestures
Assembly: RichCanvas.dll

public class MouseKeyGesture : InputGesture

Inheritance

objectInputGestureMouseKeyGesture

Inherited Members

InputGesture.Matches(object, InputEventArgs), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

MouseKeyGesture()

public MouseKeyGesture()

MouseKeyGesture(MouseGesture, params KeyGesture[])

public MouseKeyGesture(MouseGesture mouseGesture, params KeyGesture[] keyGestures)

Parameters

mouseGesture MouseGesture

keyGestures KeyGesture[]

MouseKeyGesture(MouseGesture, params Key[])

public MouseKeyGesture(MouseGesture mouseGesture, params Key[] keys)

Parameters

mouseGesture MouseGesture

keys Key[]

Properties

KeyGestures

[TypeConverter(typeof(MouseKeyGestureConverter))]
public KeyGesture[] KeyGestures { get; set; }

Property Value

KeyGesture[]

Keys

public Key[] Keys { get; set; }

Property Value

Key[]

MouseGesture

public MouseGesture MouseGesture { get; set; }

Property Value

MouseGesture

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)

Parameters

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.