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 - 委派Delegate MouseEventHandler