How to reset zoom

helpme 1 year ago in New features 0

I have an oxyplot RectangleBarSeries and a button "Reset". When I press the button I want the zoom to reset (in the same way the zoom resets when A is pressed on the keyboard). I've tried the ResetAllAxes(); function, but it doesn't work. Is there any other way to achieve this?