Disabling Default Mouse Zoom in TeeChart for WPF

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TomAgos
Newbie
Newbie
Posts: 5
Joined: Thu Jan 16, 2025 12:00 am

Disabling Default Mouse Zoom in TeeChart for WPF

Post by TomAgos » Wed Jan 22, 2025 8:13 am

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

Edu
Newbie
Newbie
Posts: 43
Joined: Tue Nov 28, 2023 12:00 am

Re: Disabling Default Mouse Zoom in TeeChart for WPF

Post by Edu » Wed Jan 22, 2025 9:37 am

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
Edu
Steema Support

TomAgos
Newbie
Newbie
Posts: 5
Joined: Thu Jan 16, 2025 12:00 am

Re: Disabling Default Mouse Zoom in TeeChart for WPF

Post by TomAgos » Wed Jan 22, 2025 11:58 am

perfect! thank you for the fast replay

Post Reply