Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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 = (double /*IComparable*/)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);
 }
Ejemplo n.º 4
0
        /// <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>
 /// 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 = (double/*IComparable*/)newValue;
     }
     base.OnDataPointDependentValueChanged(dataPoint, oldValue, newValue);
 }