InputGesture.Matches(Object, InputEventArgs) 方法

定义

在派生类中重写时,确定指定的 InputGesture 值是否与与指定 InputEventArgs 对象关联的输入匹配。

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

参数

targetElement
Object

命令的目标。

inputEventArgs
InputEventArgs

要与此手势进行比较的输入事件数据。

返回

true 如果手势与输入匹配,则为否则,为 false.

适用于

另请参阅