UIElement.OnTouchEnter(TouchEventArgs) 方法

定义

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

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

参数

e
TouchEventArgs

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

注解

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

适用于