Mouse.MouseWheel Mouse.MouseWheel Mouse.MouseWheel Attached Event

定義

發生於旋轉滑鼠滾輪時。Occurs when the mouse wheel is rotated.

see AddMouseWheelHandler, and RemoveMouseWheelHandler
see AddMouseWheelHandler, and RemoveMouseWheelHandler
see AddMouseWheelHandler, and RemoveMouseWheelHandler

備註

焦點或滑鼠捕捉的優先於滑鼠指標位於其中。Focus or mouse capture take precedence over where the mouse pointer is. 如果您接收這個事件的焦點或擷取的項目時,滑鼠指標實際上是另一個項目上方時。If you receive this event from a focused or captured element, the mouse pointer might in fact be over another element at the time.

這是附加的事件。This is an attached event. WPFWPF 將附加的事件實作為路由事件。implements attached events as routed events. 附加的事件基本上都XAMLXAML參考可以處理不會定義事件的物件的事件的語言概念的WPFWPF展開時也能周遊路由事件。Attached events are fundamentally a XAMLXAML language concept for referencing events that can be handled on objects that do not define that event, which WPFWPF expands upon by also enabling the event to traverse a route. 附加的事件並沒有直接處理語法在程式碼若要附加的程式碼中的路由事件處理常式,您會使用指定的新增 * 處理常式方法。Attached events do not have a direct handling syntax in code; to attach handlers for a routed event in code, you use a designated Add*Handler method. 如需詳細資訊,請參閱 < 附加事件概觀For details, see Attached Events Overview.

路由事件資訊Routed Event Information

識別項欄位Identifier field MouseWheelEvent
路由策略Routing strategy 事件反昇Bubbling
Delegate - 委派Delegate MouseWheelEventHandler

適用於