December 03, 2013
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Use a handler based on MouseWheelEventHandler to handle this event..
The event is a bubbling event. This means that if multiple event handlers are registered for a sequence of objects connected by parent-child relationships in the object tree, the event is potentially received by each object in that relationship. The bubbling metaphor indicates that the event starts at the source and works its way up the object tree. For a bubbling event, the sender available to the event handler identifies the object where the event is handled, not necessarily the object that actually received the input condition that initiated the event. To get the object that initiated the event, use the OriginalSource value of the event data.
Handling mouse wheel events may require techniques beyond just handling this event, depending on your application and platform considerations..
If a UIElement has mouse capture, it can generate events even if the pointer has moved elsewhere.
Handling and marking Handled as true in the event data has potential effect on how the HTML OnMouseDown event is reported in the HTML DOM..
MouseWheel and OnMouseWheel
Controls that inherit can provide handling for the event that acts as handler for all instances, by overriding the OnMouseWheel method. This might include marking the Handled value of the event as true, which has the effect of suppressing further handling of the event on any instance of the control (and potentially any subclass of the control.
You can also register handlers such that they are invoked even for already-handled routed events. For more information, see AddHandler.