UIElement.OnGotTouchCapture(TouchEventArgs) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为在此元素上捕获触摸屏输入时发生的 GotTouchCapture 路由事件提供类处理。
protected:
virtual void OnGotTouchCapture(System::Windows::Input::TouchEventArgs ^ e);
C#
protected virtual void OnGotTouchCapture(System.Windows.Input.TouchEventArgs e);
abstract member OnGotTouchCapture : System.Windows.Input.TouchEventArgs -> unit
override this.OnGotTouchCapture : System.Windows.Input.TouchEventArgs -> unit
Protected Overridable Sub OnGotTouchCapture (e As TouchEventArgs)
包含事件数据的 TouchEventArgs。
方法 OnGotTouchCapture 没有默认实现。 在派生类中重写 OnGotTouchCapture 以处理 GotTouchCapture 事件。 请务必调用基类的 OnGotTouchCapture 方法,以便基类接收 事件。
产品 | 版本 |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |