コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }