10-23-2017 12:48 AM
Whenever user performs zoom, pan or axis range changes on WPF graph, the actions are remembered by graph. Calling UndoZoomPan() will bring graph display to previous state. Is there a way to know the undo count, so undo zoom context menu item (user code) can be enabled or disabled accordingly?
10-23-2017 10:54 AM
Unfortunately, there is no member that reflects the current number of undo items saved by the graph. I have created a task to expose the current undo count as a read-only property.
You could get a rough approximation of available undo operations by monitoring axis change events, but this will have limited accuracy, due to the way those events are processed by the graph (for example, the graph combines a continuous mouse drag, composed of many small pans, into a single "undo pan" item).
07-09-2019 10:52 AM
Just wanted to let you know that the InteractionHistoryCurrentCount
property was added to the graph controls in Measurement Studio 2019.