ContentElement.OnGotTouchCapture(TouchEventArgs) ContentElement.OnGotTouchCapture(TouchEventArgs) ContentElement.OnGotTouchCapture(TouchEventArgs) ContentElement.OnGotTouchCapture(TouchEventArgs) Method

定義

提供 GotTouchCapture 路由事件的類別處理,而這個事件會在擷取到對此項目的觸控時發生。Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

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

參數

e
TouchEventArgs TouchEventArgs TouchEventArgs TouchEventArgs

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

備註

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

適用於