SilverFlow.Controls.FloatingWindow.OnRestoreButtonStylePropertyChanged C# (CSharp) Méthode

OnRestoreButtonStylePropertyChanged() private static méthode

RestoreButtonStyle PropertyChangedCallback call back static function.
private static OnRestoreButtonStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject FloatingWindow object whose RestoreButtonStyle property is changed.
e System.Windows.DependencyPropertyChangedEventArgs The instance containing the event data.
Résultat void
        private static void OnRestoreButtonStylePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var window = (FloatingWindow)d;
            if (window != null)
            {
                Style style = e.NewValue as Style;
                window.CloseButtonStyle = style;

                if (window.restoreButton != null)
                    window.restoreButton.Style = style;
            }
        }
FloatingWindow