Share via


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

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

See Also

Reference

Ribbon Class

Microsoft.Windows.Controls.Ribbon Namespace