Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Winform and WPF zoom management

After loading a plot in a WPF graph and zooming, if we change programmatically the axis range, the zoom manager loses all its information :

UndoZoomPan, ResetZoomPan, etc. doesn't works.

 

For information, with a WinForm graph the zoom manager keeps all information and continue to work successfully.

 

Is it a normal behavior for WPF graph?

 

O. DANIERE

0 Kudos
Message 1 of 3
(6,231 Views)

This is the expected behavior for the current implementation of undo history in the WPF graph: when scales are changed outside of one of the Interactions on the graph, the undo history is reset. I have created a task to try and match the behavior of the Windows Forms graphs in WPF.

 

If you need more control over interaction history in your current application, you can disable undo history in the graph by setting the InteractionHistoryCount property to zero, and listen to the RangeChanged event on the scales to save a history of their values.

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

Just wanted to let you know this issue (#403056) was fixed in the Measurement Studio 2015 release.

~ Paul H
0 Kudos
Message 3 of 3
(4,665 Views)