Ribbon.OnPreviewMouseWheel Method
Provides class handling for the MouseWheel event.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overrides Sub OnPreviewMouseWheel ( _
e As MouseWheelEventArgs _
)
protected override void OnPreviewMouseWheel(
MouseWheelEventArgs e
)
protected:
virtual void OnPreviewMouseWheel(
MouseWheelEventArgs^ e
) override
abstract OnPreviewMouseWheel :
e:MouseWheelEventArgs -> unit
override OnPreviewMouseWheel :
e:MouseWheelEventArgs -> unit
protected override function OnPreviewMouseWheel(
e : MouseWheelEventArgs
)
Parameters
- e
Type: System.Windows.Input.MouseWheelEventArgs
The event data.
Remarks
Spinning the mouse wheel while the mouse pointer is over the Ribbon causes the Ribbon to switch between tabs.
This implementation marks the MouseWheel event as handled by setting the Handled property of the event data to true.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.