UIElement.OnPreviewTouchMove(TouchEventArgs) Method

Definition

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

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

Parameters

e
TouchEventArgs

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

Remarks

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

Applies to