Esempio n. 1
0
 /// <summary>
 /// GridLinesProperty property changed handler.
 /// </summary>
 /// <param name="oldValue">Old value.</param>
 /// <param name="newValue">New value.</param>
 private void OnGridLinesPropertyChanged(DisplayAxisGridLines oldValue, DisplayAxisGridLines newValue)
 {
     if (SeriesHost != null && oldValue != null)
     {
         SeriesHost.BackgroundElements.Remove(oldValue);
     }
     if (SeriesHost != null && newValue != null)
     {
         SeriesHost.BackgroundElements.Add(newValue);
     }
 }
 /// <summary>
 /// GridLinesProperty property changed handler.
 /// </summary>
 /// <param name="oldValue">Old value.</param>
 /// <param name="newValue">New value.</param>        
 private void OnGridLinesPropertyChanged(DisplayAxisGridLines oldValue, DisplayAxisGridLines newValue)
 {
     if (SeriesHost != null && oldValue != null)
     {
         SeriesHost.BackgroundElements.Remove(oldValue);
     }
     if (SeriesHost != null && newValue != null)
     {
         SeriesHost.BackgroundElements.Add(newValue);
     }
 }