示例#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 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);
        }
示例#3
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);
        }
示例#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);
        }
示例#8
0
        public LoadingWindow()
        {
            InitializeComponent();
            this.WindowStyle           = WindowStyle.None;
            this.Top                   = int.MaxValue;
            this.Topmost               = true;
            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            this.WindowState           = WindowState.Normal;
            var bar = new FluidProgressBar();

            bar.Foreground = Brushes.White;
            this.Content   = bar;
        }