UIElement.OnPreviewTouchDown(TouchEventArgs) UIElement.OnPreviewTouchDown(TouchEventArgs) UIElement.OnPreviewTouchDown(TouchEventArgs) UIElement.OnPreviewTouchDown(TouchEventArgs) Method

定义

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

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

参数

e
TouchEventArgs TouchEventArgs TouchEventArgs TouchEventArgs

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

注解

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

适用于