UIElement.OnGotTouchCapture(TouchEventArgs) 方法

定义

为在此元素上捕获触摸屏输入时发生的 GotTouchCapture 路由事件提供类处理。Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

protected:
 virtual void OnGotTouchCapture(System::Windows::Input::TouchEventArgs ^ e);
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)

参数

e
TouchEventArgs

包含事件数据的 TouchEventArgsA TouchEventArgs that contains the event data.

注解

OnGotTouchCapture 方法没有默认实现。The OnGotTouchCapture method has no default implementation. 重写派生类中的 OnGotTouchCapture 以处理 GotTouchCapture 事件。Override OnGotTouchCapture in a derived class to handle the GotTouchCapture event. 请确保调用基类的 OnGotTouchCapture 方法,以便基类接收事件。Be sure to call the base class' OnGotTouchCapture method so that base classes receive the event.

适用于