06-06-2018 07:29 AM
Hi,
I am using WPF graph and its data changes continuously every 50ms.
I set XAxesRangeAdjuster to FitExactly and I want to use GraphInteractionPallete to Zoom/ZoomHorizontal/ZoomVertical/ZoomIn/ZoomOut interactions.
When I select area and want to ZoomHorizontal it resets because new data changes the range again.
I want to set range manually in ViewModel and select graph data manually when Zoom event occurred.
How could we get selected area start&end positions?
Is there a event or something else when ZoomToFit or another button clicked?
Best Regards,
Thanks,
Thanks,
Solved! Go to Solution.
06-07-2018 02:51 AM
I am traveling this month, so I will not be able to test anything directly, but I believe the Range Changed event on the axis will notify you of all range changes. Then you can use a preview click event ( https://forums.ni.com/t5/Measurement-Studio-for-NET/WPF-Legend-Item-Mouse-Event/m-p/2428032 ) to update the Adjuster after a legend button causes a range change.
06-08-2018 01:23 AM
Hi Paul,
Thank you for solution 🙂
Best Regards,
Hakan