ContentElement.OnTouchEnter(TouchEventArgs) ContentElement.OnTouchEnter(TouchEventArgs) ContentElement.OnTouchEnter(TouchEventArgs) ContentElement.OnTouchEnter(TouchEventArgs) Method

定義

提供 TouchEnter 路由事件的類別處理,而這個事件會在觸控從外面移至此項目範圍內時發生。Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

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

參數

e
TouchEventArgs TouchEventArgs TouchEventArgs TouchEventArgs

TouchEventArgs,其中包含事件資料。A TouchEventArgs that contains the event data.

備註

OnTouchEnter方法有沒有預設的實作。The OnTouchEnter method has no default implementation. 覆寫OnTouchEnter衍生類別來處理在TouchEnter事件。Override OnTouchEnter in a derived class to handle the TouchEnter event. 請務必呼叫基底類別OnTouchEnter方法的基底類別,因此可接收事件。Be sure to call the base class' OnTouchEnter method so that base classes receive the event.

適用於