InputGesture.Matches Method (Object, InputEventArgs)

 

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

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public abstract bool Matches(
	object targetElement,
	InputEventArgs inputEventArgs
)

Parameters

targetElement
Type: System.Object

The target of the command.

inputEventArgs
Type: System.Windows.Input.InputEventArgs

The input event data to compare this gesture to.

Return Value

Type: System.Boolean

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

.NET Framework
Available since 3.0
Return to top
Show: