UIElement.PreviewStylusButtonDown 事件


在指针位于此元素上并且按下触笔按钮时发生。Occurs when the stylus button is pressed while the pointer is over this element.

 virtual event System::Windows::Input::StylusButtonEventHandler ^ PreviewStylusButtonDown;
public event System.Windows.Input.StylusButtonEventHandler PreviewStylusButtonDown;
member this.PreviewStylusButtonDown : System.Windows.Input.StylusButtonEventHandler 
Public Custom Event PreviewStylusButtonDown As StylusButtonEventHandler 



此事件创建此类的 Stylus.PreviewStylusButtonDown 附加事件的别名,以便在将 UIElement 作为基元素继承时,PreviewStylusButtonDown 是类成员列表的一部分。This event creates an alias for the Stylus.PreviewStylusButtonDown attached event for this class, so that PreviewStylusButtonDown is part of the class members list when UIElement is inherited as a base element. 附加到 PreviewStylusButtonDown 事件的事件处理程序附加到基础 Stylus.PreviewStylusButtonDown 附加事件,并接收相同的事件数据实例。Event handlers that are attached to the PreviewStylusButtonDown event are attached to the underlying Stylus.PreviewStylusButtonDown attached event and receive the same event data instance.

触摸、鼠标和触笔输入在特定关系中存在。Touch, mouse, and stylus input exist in a particular relationship. 有关详细信息,请参阅Windows Vista 中的触摸输入支持输入概述For more information, see Touch Input Support in Windows Vista and Input Overview.

路由事件信息Routed Event Information

标识符字段Identifier field PreviewStylusButtonDownEvent
路由策略Routing strategy 隧道Tunneling
委托Delegate StylusButtonEventHandler