I want to display a non-zoomable ZedGraph control. How do I disable the mousewheel zooming function in ZedGraph?
If you wish to only disable the zoom by mouse wheel feature, you can use:
zedGraphControl.IsEnableWheelZoom = false;
If zgc
is your ZedGraphControl
instance, use:
zgc.ZoomButtons = MouseButtons.None;
zgc.ZoomButtons2 = MouseButtons.None;
This will disable zooming by selecting area with mouse.
You will also need to set:
zgc.ZoomStepFraction = 0;
in order to disable zooming using mouse wheel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With