Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF Graph - How to retrive horizontal & veritcal values when Zoom performed by GraphInteractionPalette

Solved!
Go to solution

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,

 

 

0 Kudos
Message 1 of 3
(2,223 Views)
Solution
Accepted by topic author yrnhkn

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.

~ Paul H
0 Kudos
Message 2 of 3
(2,196 Views)

Hi Paul,

 

Thank you for solution 🙂

Best Regards,

 

Hakan

0 Kudos
Message 3 of 3
(2,185 Views)