UIElement.PreviewStylusInRange 事件
定義
手寫筆在此項目上方,且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
public:
virtual event System::Windows::Input::StylusEventHandler ^ PreviewStylusInRange;
public event System.Windows.Input.StylusEventHandler PreviewStylusInRange;
member this.PreviewStylusInRange : System.Windows.Input.StylusEventHandler
Public Custom Event PreviewStylusInRange As StylusEventHandler
事件類型
實作
備註
此事件 Stylus.PreviewStylusInRange 會為這個類別建立附加事件的別名,因此 PreviewStylusInRange 當 UIElement 繼承為基底專案時,它就是類別成員清單的一部分。This event creates an alias for the Stylus.PreviewStylusInRange attached event for this class, so that PreviewStylusInRange is part of the class members list when UIElement is inherited as a base element. 附加至事件的事件處理常式 PreviewStylusInRange 會附加至基礎 Stylus.PreviewStylusInRange 附加事件,並接收相同的事件資料實例。Event handlers that are attached to the PreviewStylusInRange event are attached to the underlying Stylus.PreviewStylusInRange attached event and receive the same event data instance.
觸控、滑鼠和手寫筆輸入存在於特定關聯性中。Touch, mouse, and stylus input exist in a particular relationship. 如需詳細資訊,請參閱 輸入總覽。For more information, see Input Overview.
路由事件資訊Routed Event Information
識別碼欄位Identifier field | PreviewStylusInRangeEvent |
路由策略Routing strategy | 隧道Tunneling |
代理人Delegate | StylusEventHandler |
對應的反升事件為 StylusInRange 。The corresponding bubbling event is StylusInRange.
OnPreviewStylusInRange在衍生類別中覆寫以執行這個事件的類別處理。Override OnPreviewStylusInRange to implement class handling for this event in derived classes.