Disable zooming and panning

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Disable zooming and panning

Post by jrvdboom » Thu Apr 30, 2015 8:31 am

Is there a simple way to disable all zooming and panning by the user, while keeping other mouse interactions (highlights, moving cursors, adjusting bands, etc.) enabled?

Thanks,
Joost

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Disable zooming and panning

Post by ArctionPasi » Thu Apr 30, 2015 12:36 pm

Yes.

Set

chart.ViewXY.ZoomPanOptions.LeftMouseButtonAction = MouseButtonAction.None;
chart.ViewXY.ZoomPanOptions.RightMouseButtonAction = MouseButtonAction.None;
chart.ViewXY.ZoomPanOptions.MouseWheelZooming = MouseWheelZooming.Off;
LightningChart Support Team, PT

jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Re: Disable zooming and panning

Post by jrvdboom » Thu Apr 30, 2015 12:47 pm

Okay. But now I can still pan and zoom by dragging the axes/scale nibs. Of course I can disable these a well, but I was looking for a simpler solution...

Post Reply