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.

適用於