UIElement.PreviewStylusInRange UIElement.PreviewStylusInRange UIElement.PreviewStylusInRange UIElement.PreviewStylusInRange Event


在触笔位于此元素上并且触笔与数字化器之间的距离近到足以检测到触笔时发生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

 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