/// <summary> /// Update the axes when the specified data point's DependentValue property changes. /// </summary> /// <param name="dataPoint">The data point.</param> /// <param name="oldValue">The old value.</param> /// <param name="newValue">The new value.</param> protected override void OnDataPointDependentValueChanged(DataPoint dataPoint, IComparable oldValue, IComparable newValue) { if ((null != InternalActualDependentAxis)) { dataPoint.BeginAnimation(DataPoint.ActualDependentValueProperty, "ActualDependentValue", newValue, this.TransitionDuration, this.TransitionEasingFunction); } else { dataPoint.ActualDependentValue = newValue; } base.OnDataPointDependentValueChanged(dataPoint, oldValue, newValue); }
/// <summary> /// Update axes when the specified data point's independent value changes. /// </summary> /// <param name="dataPoint">The data point.</param> /// <param name="oldValue">The old value.</param> /// <param name="newValue">The new value.</param> protected override void OnDataPointIndependentValueChanged(DataPoint dataPoint, object oldValue, object newValue) { if ((null != InternalActualIndependentAxis) && (InternalActualIndependentAxis is IRangeAxis)) { dataPoint.BeginAnimation(DataPoint.ActualIndependentValueProperty, "ActualIndependentValue", newValue, this.TransitionDuration, this.TransitionEasingFunction); } else { dataPoint.ActualIndependentValue = newValue; } base.OnDataPointIndependentValueChanged(dataPoint, oldValue, newValue); }
/// <summary> /// Removes a data point from the plot area. /// </summary> /// <param name="dataPoint">The data point to remove.</param> protected virtual void RemoveDataPoint(DataPoint dataPoint) { if (dataPoint.IsSelected) { Unselect(dataPoint); } ActiveDataPointCount--; #if !SILVERLIGHT // Cancel any Storyboards that might be holding the State property's value dataPoint.BeginAnimation(DataPoint.StateProperty, null); #endif dataPoint.State = DataPointState.PendingRemoval; }
/// <summary> /// Update axes when the specified data point's independent value changes. /// </summary> /// <param name="dataPoint">The data point.</param> /// <param name="oldValue">The old value.</param> /// <param name="newValue">The new value.</param> protected override void OnDataPointIndependentValueChanged(DataPoint dataPoint, object oldValue, object newValue) { if ((null != InternalActualIndependentAxis) && (InternalActualIndependentAxis is IRangeAxis)) { dataPoint.BeginAnimation(DataPoint.ActualIndependentValueProperty, "ActualIndependentValue", newValue, this.TransitionDuration, this.TransitionEasingFunction); } else { dataPoint.ActualIndependentValue = newValue; } base.OnDataPointIndependentValueChanged(dataPoint, oldValue, newValue); }
/// <summary> /// Update the axes when the specified data point's DependentValue property changes. /// </summary> /// <param name="dataPoint">The data point.</param> /// <param name="oldValue">The old value.</param> /// <param name="newValue">The new value.</param> protected override void OnDataPointDependentValueChanged(DataPoint dataPoint, IComparable oldValue, IComparable newValue) { if ((null != InternalActualDependentAxis)) { dataPoint.BeginAnimation(DataPoint.ActualDependentValueProperty, "ActualDependentValue", newValue, this.TransitionDuration, this.TransitionEasingFunction); } else { dataPoint.ActualDependentValue = newValue; } base.OnDataPointDependentValueChanged(dataPoint, oldValue, newValue); }
/// <summary> /// Updates the data point when the pie data point's offset ratio is /// changed. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">Information about the event.</param> private void OnPieDataPointOffsetRatioChanged(object sender, RoutedPropertyChangedEventArgs <double> args) { DataPoint dataPoint = sender as DataPoint; dataPoint.BeginAnimation(PieDataPoint.ActualOffsetRatioProperty, "ActualOffsetRatio", args.NewValue, TransitionDuration, this.TransitionEasingFunction); }
/// <summary> /// Removes a data point from the plot area. /// </summary> /// <param name="dataPoint">The data point to remove.</param> protected virtual void RemoveDataPoint(DataPoint dataPoint) { if (dataPoint.IsSelected) { Unselect(dataPoint); } ActiveDataPointCount--; #if !SILVERLIGHT // Cancel any Storyboards that might be holding the State property's value dataPoint.BeginAnimation(DataPoint.StateProperty, null); #endif dataPoint.State = DataPointState.PendingRemoval; }