04-15-2013 09:14 AM
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
04-15-2013
12:59 PM
- last edited on
11-20-2024
08:39 AM
by
Content Cleaner
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.
08-11-2015
11:04 AM
- last edited on
11-20-2024
08:39 AM
by
Content Cleaner
Just wanted to let you know this issue (#403056) was fixed in the Measurement Studio 2015 release.