Occurs when the user rotates the mouse wheel while the mouse pointer is over a
System.Windows.UIElement, or the
System.Windows.UIElement has focus.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Event MouseWheel As System.Windows.Input.MouseWheelEventHandler |
| C# | |
|---|
public event System.Windows.Input.MouseWheelEventHandler MouseWheel |
Event Data
The event handler receives an argument of type System.Windows.Input.MouseWheelEventArgs containing data related to this event. The following MouseWheelEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Delta | Gets a value that indicates the amount that the mouse wheel rotated relative to its starting state or to the last occurrence of the event. |
| Handled | Gets or sets a value that marks the routed event as handled, and prevents most handlers along the event route from rehandling the same event. |
| OriginalSource | Gets a reference to the object that raised the event. (Inherited from System.Windows.RoutedEventArgs) |
| StylusDevice | Gets an object that reports stylus device information, such as the collection of stylus points associated with the input. (Inherited from System.Windows.Input.MouseEventArgs) |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also