Пример #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);
     }
 }
Пример #2
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);
     }
 }