Example #1
0
        /// <summary>
        /// Handles changes to the Delay property.
        /// </summary>
        /// <param name="d">FluidProgressBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnDelayChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidProgressBar pBar     = (FluidProgressBar)d;
            Duration         oldDelay = (Duration)e.OldValue;
            Duration         newDelay = pBar.Delay;

            pBar.OnDelayChanged(oldDelay, newDelay);
        }
Example #2
0
        /// <summary>
        /// Handles changes to the TotalDuration property.
        /// </summary>
        /// <param name="d">FluidProgressBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnTotalDurationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidProgressBar pBar             = (FluidProgressBar)d;
            Duration         oldTotalDuration = (Duration)e.OldValue;
            Duration         newTotalDuration = pBar.TotalDuration;

            pBar.OnTotalDurationChanged(oldTotalDuration, newTotalDuration);
        }
Example #3
0
        /// <summary>
        /// Handles changes to the Oscillate property.
        /// </summary>
        /// <param name="d">FluidProgressBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnOscillateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidProgressBar pBar         = (FluidProgressBar)d;
            bool             oldOscillate = (bool)e.OldValue;
            bool             newOscillate = pBar.Oscillate;

            pBar.OnOscillateChanged(oldOscillate, newOscillate);
        }
Example #4
0
        /// <summary>
        /// Handles changes to the KeyFrameB property.
        /// </summary>
        /// <param name="d">FluidProgressBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnKeyFrameBChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidProgressBar pBar         = (FluidProgressBar)d;
            double           oldKeyFrameB = (double)e.OldValue;
            double           newKeyFrameB = pBar.KeyFrameB;

            pBar.OnKeyFrameBChanged(oldKeyFrameB, newKeyFrameB);
        }
Example #5
0
        /// <summary>
        /// Handles changes to the DurationC property.
        /// </summary>
        /// <param name="d">FluidProgressBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnDurationCChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidProgressBar pBar         = (FluidProgressBar)d;
            Duration         oldDurationC = (Duration)e.OldValue;
            Duration         newDurationC = pBar.DurationC;

            pBar.OnDurationCChanged(oldDurationC, newDurationC);
        }
Example #6
0
        /// <summary>
        /// Handles changes to the DotRadiusY property.
        /// </summary>
        /// <param name="d">FluidProgressBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnDotRadiusYChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidProgressBar pBar          = (FluidProgressBar)d;
            double           oldDotRadiusY = (double)e.OldValue;
            double           newDotRadiusY = pBar.DotRadiusY;

            pBar.OnDotRadiusYChanged(oldDotRadiusY, newDotRadiusY);
        }
Example #7
0
        /// <summary>
        /// Handles changes to the DotHeight property.
        /// </summary>
        /// <param name="d">FluidProgressBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnDotHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidProgressBar pBar         = (FluidProgressBar)d;
            double           oldDotHeight = (double)e.OldValue;
            double           newDotHeight = pBar.DotHeight;

            pBar.OnDotHeightChanged(oldDotHeight, newDotHeight);
        }