/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }