UIElement.PreviewMouseMove UIElement.PreviewMouseMove UIElement.PreviewMouseMove UIElement.PreviewMouseMove Event

定义

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

public:
 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附加事件的别名, 因此当继承PreviewMouseMove为基元素时UIElement , 它是类成员列表的一部分。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

适用于