語言

ContentElement.OnStylusEnter(StylusEventArgs) 方法

定義

當此元素提出未處理的 StylusEnter 附加事件時會被呼叫。 實作這個方法可為此事件加入類別處理。

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

參數

e
StylusEventArgs

那個 StylusEventArgs 包含事件資料。

備註

此方法沒有預設實作。 因為繼承中的中間類別可能會實作此方法,我們建議您在實作中呼叫基礎實作。 你可以根據需求,在特別處理前後致電基地。

此方法的目的類似於通用語言執行時(CLR)事件模式的 On* 方法:此方法透過建立類別處理器而非實例處理器,提供處理衍生類別中匹配事件的方法。 此時匹配事件為路由事件。 將事件標記為已處理(handled)仍有助於防止典型的實例處理器(未指定 handledEventsToo)被呼叫。

適用於

另請參閱