예제 #1
0
 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;
     }
 }
예제 #2
0
 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();
 }