ContentElement.MouseMove 事件
定义
在鼠标指针位于此元素上并且移动鼠标指针时发生。Occurs when the mouse pointer moves while over this element.
public:
virtual event System::Windows::Input::MouseEventHandler ^ MouseMove;
public event System.Windows.Input.MouseEventHandler MouseMove;
member this.MouseMove : System.Windows.Input.MouseEventHandler
Public Custom Event MouseMove As MouseEventHandler
事件类型
实现
注解
此事件将为 Mouse.MouseMove 此类创建附加事件的别名,因此 MouseMove 当 ContentElement 继承为基元素时,它是类成员列表的一部分。This event creates an alias for the Mouse.MouseMove attached event for this class, so that MouseMove is part of the class members list when ContentElement is inherited as a base element. 附加到事件的事件处理程序 MouseMove 附加到基础 Mouse.MouseMove 附加事件,并接收相同的事件数据实例。Event handlers that are attached to the MouseMove event are attached to the underlying Mouse.MouseMove attached event and receive the same event data instance.
路由事件信息Routed Event Information
标识符字段Identifier field | MouseMoveEvent |
路由策略Routing strategy | 冒泡Bubbling |
委托Delegate | MouseEventHandler |
对应的隧道事件为 PreviewMouseMove 。The corresponding tunneling event is PreviewMouseMove.
重写 OnMouseMove 以在派生类中实现此事件的类处理。Override OnMouseMove to implement class handling for this event in derived classes.