protected virtual void Axis_ScaleViewChanged(object sender, ScaleViewChangedArgs e) { if (this._axisViewChanging) return; try { this._axisViewChanging = true; this.Axis.ViewPositionInPercent = this.ScaleViewPositionInPercent; this.Axis.ViewSizeInPercent = this.ScaleViewSizeInPercent; } finally { this._axisViewChanging = false; } }
internal virtual void OnAxisScaleViewChanged(object sender, ScaleViewChangedArgs e) { Axis axis = sender as Axis; this.UpdateSession.BeginUpdates(); foreach (XYSeries xySeries in this.Series) { if (axis == xySeries.XAxis) ((XYSeriesPresenter)xySeries.SeriesPresenter).OnXScaleViewChanged(e.OldRange, e.NewRange); else if (axis == xySeries.YAxis) ((XYSeriesPresenter)xySeries.SeriesPresenter).OnYScaleViewChanged(e.OldRange, e.NewRange); } if (!this.IsInitializing) this.LoadVirtualizedData(Enumerable.OfType<XYSeries>((IEnumerable)this.FindSeries(axis))); this.UpdateSession.EndUpdates(); }