UIElement.OnTouchEnter(TouchEventArgs) 方法
定義
提供 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:
virtual void OnTouchEnter(System::Windows::Input::TouchEventArgs ^ e);
protected 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 Overridable Sub OnTouchEnter (e As 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.