Page 1 of 1

Zoom to specific level / un-zoom

Posted: Sun Apr 28, 2013 9:13 pm
by SupportArchives
I have zoomed in the ViewXY graph. How to return the axis ranges to my default values by mouse? Or can I return to previous zoom level?

Re: Zoom to specific level / un-zoom

Posted: Sun Apr 28, 2013 9:15 pm
by ArctionPasi
You can use the Revert feature (means “restore pre-defined range values). ViewXY.ZoomPanOptions has RightToLeftZoomAction, set it to RevertAxisRanges. Axes have RangeRevertMinimum and RangeRevertMinimum properties. Store new values there which you want to use as un-zoom values. You can change the values as you want when running the software, for example when you make a zoom in, axis RangeChanged event handler would be suitable place. When you make the right to left zoom gesture next time, it’ll set the range to these revert ranges.