Page 1 of 1

Disabling Default Mouse Zoom in TeeChart for WPF

Posted: Wed Jan 22, 2025 8:13 am
by 21099317
Hello,

I recently purchased the TeeChart Business Package for WPF and have implemented a custom zoom mechanism using the MouseWheel event.

Now, I would like to disable the default zoom behavior (holding the left mouse button to zoom). Could you please advise on how to achieve this?

Thank you for your assistance!

Best regards,
Tom

Re: Disabling Default Mouse Zoom in TeeChart for WPF

Posted: Wed Jan 22, 2025 9:37 am
by edu
Hello Tom,
Now, I would like to disable the default zoom behavior (holding the left mouse button to zoom). Could you please advise on how to achieve this?
To disable the default zoom behavior you can do it by setting the Zoom.Direction value to ZoomDirections.None
For example:

Code: Select all

tChart1.Zoom.Direction = ZoomDirections.None;
If this setting collides with your custom zoom mechanism, please let me know so I can offer further help.

Best regards,
Edu

Re: Disabling Default Mouse Zoom in TeeChart for WPF

Posted: Wed Jan 22, 2025 11:58 am
by 21099317
perfect! thank you for the fast replay