DesignerView.OnPreviewMouseWheel Method (MouseWheelEventArgs)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Raises the PreviewMouseWheel event.

Namespace:   System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

protected override void OnPreviewMouseWheel(
	MouseWheelEventArgs e


Type: System.Windows.Input.MouseWheelEventArgs

The MouseWheelEventArgs that contains the event data.

This event is invoked when an unhandled M:System.Windows.Input.Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Override this method to add class handling for this event. If the CTRL key is pressed when this event is processed, the view is zoomed in or out, based on the movement of the mouse wheel.

.NET Framework
Available since 4.0
Return to top