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

TouchEventArgs,其中包含事件資料。A 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.

適用於