'Declaration
Public Event PreviewMouseWheel As System.Windows.Input.MouseWheelEventHandler
'Usage
Dim instance As NMenuBarControl Dim handler As System.Windows.Input.MouseWheelEventHandler AddHandler instance.PreviewMouseWheel, handler
public event System.Windows.Input.MouseWheelEventHandler PreviewMouseWheel
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 has changed. |
Device | (Inherited from System.Windows.Input.InputEventArgs) |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
LeftButton | (Inherited from System.Windows.Input.MouseEventArgs) |
MiddleButton | (Inherited from System.Windows.Input.MouseEventArgs) |
MouseDevice | (Inherited from System.Windows.Input.MouseEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RightButton | (Inherited from System.Windows.Input.MouseEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
StylusDevice | (Inherited from System.Windows.Input.MouseEventArgs) |
Timestamp | (Inherited from System.Windows.Input.InputEventArgs) |
XButton1 | (Inherited from System.Windows.Input.MouseEventArgs) |
XButton2 | (Inherited from System.Windows.Input.MouseEventArgs) |
Requirements
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
See Also