Class DoubleKeyGesture
Defines a double keyboard combination that can be used to invoke a command.
public class DoubleKeyGesture : KeyGesture
- Inheritance
-
DoubleKeyGesture
- Inherited Members
Constructors
DoubleKeyGesture(KeyGesture, KeyGesture)
Initializes a new instance of the DoubleKeyGesture class.
public DoubleKeyGesture(KeyGesture first, KeyGesture second)
Parameters
firstKeyGestureThe first gesture.
secondKeyGestureThe second gesture.
Exceptions
- ArgumentNullException
Thrown when
firstorsecondis null.
Properties
First
Gets the first key gesture.
public KeyGesture First { get; }
Property Value
Second
Gets the second key gesture.
public KeyGesture Second { get; }
Property Value
Methods
Matches(object, InputEventArgs)
Determines whether this KeyGesture matches the input associated with the specified InputEventArgs object.
public override bool Matches(object obj, InputEventArgs inputEventArgs)
Parameters
objobjectinputEventArgsInputEventArgsThe input event data to compare this gesture to.
Returns
- bool
true if the event data matches this KeyGesture; otherwise, false.