private void OnZoomExtents() { var range = new DoubleRange(0, 10); XAxis.AnimateVisibleRangeTo(range, TimeSpan.FromMilliseconds(500)); YAxis.AnimateVisibleRangeTo(range, TimeSpan.FromMilliseconds(500)); }