protected override void OnBindingPathChanged(DependencyPropertyChangedEventArgs args) { HorizontalCustomValues.Clear(); VerticalCustomValues.Clear(); YValues.Clear(); base.OnBindingPathChanged(args); }
/// <summary> /// Method for Generate Points for XYDataSeries /// </summary> protected internal override void GeneratePoints() { HorizontalCustomValues.Clear(); VerticalCustomValues.Clear(); YValues.Clear(); if (YBindingPath != null && HorizontalErrorPath != null && VerticalErrorPath != null) { GeneratePoints(new[] { YBindingPath, HorizontalErrorPath, VerticalErrorPath }, YValues, HorizontalCustomValues, VerticalCustomValues); } else if (YBindingPath != null && HorizontalErrorPath != null) { GeneratePoints(new[] { YBindingPath, HorizontalErrorPath }, YValues, HorizontalCustomValues); } else if (YBindingPath != null && VerticalErrorPath != null) { GeneratePoints(new[] { YBindingPath, VerticalErrorPath }, YValues, VerticalCustomValues); } else if (YBindingPath != null) { GeneratePoints(new[] { YBindingPath }, YValues); } }
/// <summary> /// Called when DataSource property changed /// </summary> /// <param name="oldValue"></param> /// <param name="newValue"></param> protected override void OnDataSourceChanged(IEnumerable oldValue, IEnumerable newValue) { HorizontalCustomValues.Clear(); VerticalCustomValues.Clear(); YValues.Clear(); if (YBindingPath != null && HorizontalErrorPath != null && VerticalErrorPath != null) { GeneratePoints(new[] { YBindingPath, HorizontalErrorPath, VerticalErrorPath }, YValues, HorizontalCustomValues, VerticalCustomValues); } else if (YBindingPath != null && HorizontalErrorPath != null) { GeneratePoints(new[] { YBindingPath, HorizontalErrorPath }, YValues, HorizontalCustomValues); } else if (YBindingPath != null && VerticalErrorPath != null) { GeneratePoints(new[] { YBindingPath, VerticalErrorPath }, YValues, VerticalCustomValues); } else if (YBindingPath != null) { GeneratePoints(new[] { YBindingPath }, YValues); } this.UpdateArea(); }