InputGesture.Matches(Object, InputEventArgs) Method

Definition

When overridden in a derived class, determines whether the specified InputGesture matches the input associated with the specified InputEventArgs object.

public:
 abstract bool Matches(System::Object ^ targetElement, System::Windows::Input::InputEventArgs ^ inputEventArgs);
public abstract bool Matches (object targetElement, System.Windows.Input.InputEventArgs inputEventArgs);
abstract member Matches : obj * System.Windows.Input.InputEventArgs -> bool
Public MustOverride Function Matches (targetElement As Object, inputEventArgs As InputEventArgs) As Boolean

Parameters

targetElement
Object

The target of the command.

inputEventArgs
InputEventArgs

The input event data to compare this gesture to.

Returns

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

Applies to

See also