ContentElement.OnTouchDown(TouchEventArgs) ContentElement.OnTouchDown(TouchEventArgs) ContentElement.OnTouchDown(TouchEventArgs) ContentElement.OnTouchDown(TouchEventArgs) Method

定義

提供 TouchDown 路由事件的類別處理,而這個事件會在觸控按下此項目內部時發生。Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.

protected public:
 virtual void OnTouchDown(System::Windows::Input::TouchEventArgs ^ e);
protected internal 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 Friend Overridable Sub OnTouchDown (e As TouchEventArgs)

參數

e
TouchEventArgs TouchEventArgs TouchEventArgs TouchEventArgs

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

適用於