UIElement.PreviewMouseMove 事件


在鼠标指针位于此元素上并且移动鼠标指针时发生。Occurs when the mouse pointer moves while the mouse pointer is over this element.

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



当鼠标指针第一次进入元素边界时,以及当鼠标指针移动到元素边界内时,将发生此事件。This event occurs both when the mouse pointer first enters into the element bounds, and also when the mouse pointer moves while still remaining within the element bounds.

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

路由事件信息Routed Event Information

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