InputGesture.Matches(Object, InputEventArgs) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,确定指定的 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.