UIElement.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 附加事件的别名,以便在将 UIElement 作为基元素继承时,MouseMove 是类成员列表的一部分。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 UIElement 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

适用于

另请参阅