Exemplo n.º 1
0
        /// <summary>
        /// Handles changes to the FadeOutDirection property.
        /// </summary>
        /// <param name="d">FluidStatusBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnFadeOutDirectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidStatusBar  fsBar = (FluidStatusBar)d;
            StatusDirection oldFadeOutDirection = (StatusDirection)e.OldValue;
            StatusDirection newFadeOutDirection = fsBar.FadeOutDirection;

            fsBar.OnFadeOutDirectionChanged(oldFadeOutDirection, newFadeOutDirection);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Handles changes to the Message property.
        /// </summary>
        /// <param name="d">FluidStatusBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnMessageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidStatusBar statusBar  = (FluidStatusBar)d;
            StatusMessage  oldMessage = (StatusMessage)e.OldValue;
            StatusMessage  newMessage = statusBar.Message;

            statusBar.OnMessageChanged(oldMessage, newMessage);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Handles changes to the MoveDuration property.
        /// </summary>
        /// <param name="d">FluidStatusBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnMoveDurationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidStatusBar fsBar           = (FluidStatusBar)d;
            Duration       oldMoveDuration = (Duration)e.OldValue;
            Duration       newMoveDuration = fsBar.MoveDuration;

            fsBar.OnMoveDurationChanged(oldMoveDuration, newMoveDuration);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Handles changes to the TextVerticalAlignment property.
        /// </summary>
        /// <param name="d">FluidStatusBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnTextVerticalAlignmentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidStatusBar    fsBar = (FluidStatusBar)d;
            VerticalAlignment oldTextVerticalAlignment = (VerticalAlignment)e.OldValue;
            VerticalAlignment newTextVerticalAlignment = fsBar.TextVerticalAlignment;

            fsBar.OnTextVerticalAlignmentChanged(oldTextVerticalAlignment, newTextVerticalAlignment);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Handles changes to the FadeOutDistance property.
        /// </summary>
        /// <param name="d">FluidStatusBar</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnFadeOutDistanceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FluidStatusBar fsBar = (FluidStatusBar)d;
            double         oldFadeOutDistance = (double)e.OldValue;
            double         newFadeOutDistance = fsBar.FadeOutDistance;

            fsBar.OnFadeOutDistanceChanged(oldFadeOutDistance, newFadeOutDistance);
        }