ChartDirector 7.1 (.NET Edition)

WPFChartViewer.MouseWheelZoomRatio


Declaration

[C#]public double MouseWheelZoomRatio {get; set;};
[VB]Public Property MouseWheelZoomRatio As Double

Description

Gets or sets the magnification ratio for each mouse wheel event.

The magnification ratio is applied when the mouse wheel rolls towards the screen. The reciprocal of the ratio is applied when the mouse wheel rolls away from the screen. A ratio larger than 1 means to zoom in when the mouse wheel rolls towards the screen, and to zoom out when the mouse wheel rolls away from the screen. A ratio less than 1 means the opposite behaviour. A ratio equal to 1 disables mouse wheel zooming.

The mouse wheel causes zooming to occur, it will trigger the WPFChartViewer.ViewPortChanged event.