Example #1
0
 private void Scale_ViewChanged(object sender, ScaleViewChangedArgs e)
 {
     if (!(e.OldRange != e.NewRange))
     {
         return;
     }
     this.OnScaleViewChanged(e.OldRange, e.NewRange);
 }
Example #2
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;
     }
 }
Example #3
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();
        }