UIElement.OnTouchLeave(TouchEventArgs) UIElement.OnTouchLeave(TouchEventArgs) UIElement.OnTouchLeave(TouchEventArgs) UIElement.OnTouchLeave(TouchEventArgs) Method

定义

为在触摸屏输入从此 TouchLeave 边界内部移动到其外部时发生的 UIElement 路由事件提供类处理。Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement.

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

参数

e
TouchEventArgs TouchEventArgs TouchEventArgs TouchEventArgs

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

注解

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

适用于