Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF graph how to ensure square zoom area

For WPF graph area zoom, is it possible to customize the selection area to be a square, to ensure same zoom scale on both horizontal and vertical axis? 

0 Kudos
Message 1 of 3
(2,395 Views)

Take a look at this forum post discussion, as it might have some insight on what you're trying to do:

https://forums.ni.com/t5/Measurement-Studio-for-NET/WPF-Graph-zoom/td-p/2696947

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,367 Views)

I am traveling this month, so I can't provide an example, but you can accomplish this by creating a custom Graph Interaction http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/def9143a/ .  (You may be able to simply adjust the mouse positions in the args, and then call into the base Zoom interaction to update the visual.)

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