Ejemplo n.º 1
0
 protected override void OnBindingPathChanged(DependencyPropertyChangedEventArgs args)
 {
     HorizontalCustomValues.Clear();
     VerticalCustomValues.Clear();
     YValues.Clear();
     base.OnBindingPathChanged(args);
 }
Ejemplo n.º 2
0
 /// <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);
     }
 }
Ejemplo n.º 3
0
        /// <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();
        }