How to remove disable default zooming and view port draggings (movements) with mouse

May 4, 2009 at 8:52 AM

Is it possible to disable default zooming and view port movements with mouse draggings. How to do it?

May 4, 2009 at 10:00 AM
Hi Ravi,

Yes, it is possible to disable all mouse navigation. It is performed by MouseNavigation class, added to ChartPlotter.Children, and to do it, you should:
1) locate an instance of MouseNavigation class, that is added to ChartPlotter.Children - the easiest way to do it is to get a value from ChartPlotter.MouseNavigation.
2) remove it from plotter's Children.

So, the code is plotter.Children.Remove(plotter.MouseNavigation);

Oct 26, 2009 at 2:07 PM

Preved :)

I have a related question. Is it possible to disable default context menu?


Best Regards,

Andrei Hilevich

Oct 26, 2009 at 2:26 PM

I have found the answer myself. The following code does the trick:



However, the proposed solution of disabling mouse navigation seems do not work for double clicks. When I double click the plotter, it zooms in (and zooms out with right button).

Best Regards,

Andrei Hilevich

Oct 26, 2009 at 6:00 PM

Hi Andrei,

double click handling is implemented in KeyboardNavigation as MouseGesture, so to disable it you should remove KeyboardNavigation from the plotter (for example, calling plotter.Children.Remove(plotter.KeyboardNavigation)).


I wonder why do you want to remove all this functionality? Is there is some special application?


Best regards,