ContentElement.PreviewMouseWheel ContentElement.PreviewMouseWheel ContentElement.PreviewMouseWheel ContentElement.PreviewMouseWheel Event

定義

滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

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

實作

備註

焦點或滑鼠捕捉會優先於滑鼠指標的所在;因此,如果您接收這個事件的焦點或擷取的項目時,滑鼠指標實際上可能是透過另一個項目。Focus or mouse capture take precedence over where the mouse pointer is; therefore, if you receive this event from a focused or captured element, the mouse pointer might actually be over another element.

此事件建立的別名Mouse.PreviewMouseWheel附加事件,此類別中,以便PreviewMouseMove屬於類別的成員清單時ContentElement繼承為基底的項目。This event creates an alias for the Mouse.PreviewMouseWheel attached event for this class, so that PreviewMouseMove is part of the class members list when ContentElement is inherited as a base element. 附加至事件處理常式PreviewMouseMove事件會附加至基礎Mouse.PreviewMouseWheel附加事件,並接收相同的事件資料執行個體。Event handlers that are attached to the PreviewMouseMove event are attached to the underlying Mouse.PreviewMouseWheel attached event and receive the same event data instance.

路由事件資訊Routed Event Information

識別項欄位Identifier field PreviewMouseWheelEvent
路由策略Routing strategy 通道Tunneling
Delegate - 委派Delegate MouseWheelEventHandler

適用於