/// <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); } }