UIElement.OnTouchDown(TouchEventArgs) 方法

定义

为在此元素内按下触摸屏输入时发生的 TouchDown 路由事件提供类处理。Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.

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

参数

e
TouchEventArgs

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

注解

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

适用于