ContentElement.PreviewStylusMove 事件
定义
在触笔位于元素上并且移动触笔时发生。Occurs when the stylus moves while over the element. 数字化器在检测触笔时,触笔必须处于移动状态才会引发此事件,否则将改为引发 PreviewStylusInAirMove。The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.
public:
virtual event System::Windows::Input::StylusEventHandler ^ PreviewStylusMove;
public event System.Windows.Input.StylusEventHandler PreviewStylusMove;
member this.PreviewStylusMove : System.Windows.Input.StylusEventHandler
Public Custom Event PreviewStylusMove As StylusEventHandler
事件类型
实现
注解
此事件将为 Stylus.PreviewStylusMove 此类创建附加事件的别名,因此 PreviewStylusMove 当 ContentElement 继承为基元素时,它是类成员列表的一部分。This event creates an alias for the Stylus.PreviewStylusMove attached event for this class, so that PreviewStylusMove is part of the class members list when ContentElement is inherited as a base element. 附加到事件的事件处理程序 PreviewStylusMove 附加到基础 Stylus.PreviewStylusMove 附加事件,并接收相同的事件数据实例。Event handlers that are attached to the PreviewStylusMove event are attached to the underlying Stylus.PreviewStylusMove 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 | PreviewStylusMoveEvent |
路由策略Routing strategy | 隧道Tunneling |
委托Delegate | StylusEventHandler |
对应的冒泡事件为 StylusMove 。The corresponding bubbling event is StylusMove.
重写 OnPreviewStylusMove 以在派生类中实现此事件的类处理。Override OnPreviewStylusMove to implement class handling for this event in derived classes.