UIElement.OnLostTouchCapture(TouchEventArgs) Method

Definition

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

protected:
 virtual void OnLostTouchCapture(System::Windows::Input::TouchEventArgs ^ e);
protected virtual void OnLostTouchCapture (System.Windows.Input.TouchEventArgs e);
abstract member OnLostTouchCapture : System.Windows.Input.TouchEventArgs -> unit
override this.OnLostTouchCapture : System.Windows.Input.TouchEventArgs -> unit
Protected Overridable Sub OnLostTouchCapture (e As TouchEventArgs)

Parameters

e
TouchEventArgs

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

Remarks

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

Applies to