Example #1
0
        /// <summary>
        /// Handles changes to the SystemMouseOverForeground property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnSystemMouseOverForegroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win = (SparkWindow)d;
            Brush       oldSystemMouseOverForeground = (Brush)e.OldValue;
            Brush       newSystemMouseOverForeground = win.SystemMouseOverForeground;

            win.OnSystemMouseOverForegroundChanged(oldSystemMouseOverForeground, newSystemMouseOverForeground);
        }
Example #2
0
        /// <summary>
        /// Handles changes to the SystemBorderThickness property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnSystemBorderThicknessChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win = (SparkWindow)d;
            Thickness   oldSystemBorderThickness = (Thickness)e.OldValue;
            Thickness   newSystemBorderThickness = win.SystemBorderThickness;

            win.OnSystemBorderThicknessChanged(oldSystemBorderThickness, newSystemBorderThickness);
        }
Example #3
0
        /// <summary>
        /// Handles changes to the SystemMouseOverBorderBrush property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnSystemMouseOverBorderBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win = (SparkWindow)d;
            Brush       oldSystemMouseOverBorderBrush = (Brush)e.OldValue;
            Brush       newSystemMouseOverBorderBrush = win.SystemMouseOverBorderBrush;

            win.OnSystemMouseOverBorderBrushChanged(oldSystemMouseOverBorderBrush, newSystemMouseOverBorderBrush);
        }
Example #4
0
        /// <summary>
        /// Handles changes to the TitleBackground property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnTitleBackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win = (SparkWindow)d;
            Brush       oldTitleBackground = (Brush)e.OldValue;
            Brush       newTitleBackground = win.TitleBackground;

            win.OnTitleBackgroundChanged(oldTitleBackground, newTitleBackground);
        }
Example #5
0
        /// <summary>
        /// Handles changes to the WindowFrameMode property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnWindowFrameModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win = (SparkWindow)d;
            WindowMode  oldWindowFrameMode = (WindowMode)e.OldValue;
            WindowMode  newWindowFrameMode = win.WindowFrameMode;

            win.OnWindowFrameModeChanged(oldWindowFrameMode, newWindowFrameMode);
        }
Example #6
0
        /// <summary>
        /// Handles changes to the TitleEffect property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnTitleEffectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win            = (SparkWindow)d;
            Effect      oldTitleEffect = (Effect)e.OldValue;
            Effect      newTitleEffect = win.TitleEffect;

            win.OnTitleEffectChanged(oldTitleEffect, newTitleEffect);
        }
Example #7
0
        /// <summary>
        /// Handles changes to the TitleMargin property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnTitleMarginChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win            = (SparkWindow)d;
            Thickness   oldTitleMargin = (Thickness)e.OldValue;
            Thickness   newTitleMargin = win.TitleMargin;

            win.OnTitleMarginChanged(oldTitleMargin, newTitleMargin);
        }
Example #8
0
        /// <summary>
        /// Handles changes to the TitleImage property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnTitleImageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win           = (SparkWindow)d;
            UIElement   oldTitleImage = (UIElement)e.OldValue;
            UIElement   newTitleImage = win.TitleImage;

            win.OnTitleImageChanged(oldTitleImage, newTitleImage);
        }
Example #9
0
        /// <summary>
        /// Handles changes to the InnerBorderCornerRadius property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnInnerBorderCornerRadiusChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow  win = (SparkWindow)d;
            CornerRadius oldInnerBorderCornerRadius = (CornerRadius)e.OldValue;
            CornerRadius newInnerBorderCornerRadius = win.InnerBorderCornerRadius;

            win.OnInnerBorderCornerRadiusChanged(oldInnerBorderCornerRadius, newInnerBorderCornerRadius);
        }
Example #10
0
        /// <summary>
        /// Handles changes to the IsAboutEnabled property.
        /// </summary>
        /// <param name="d">SparkWindow</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnIsAboutEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SparkWindow win = (SparkWindow)d;
            bool        oldIsAboutEnabled = (bool)e.OldValue;
            bool        newIsAboutEnabled = win.IsAboutEnabled;

            win.OnIsAboutEnabledChanged(oldIsAboutEnabled, newIsAboutEnabled);
        }