Caliburn.Micro.BindableAppBar.BindableAppBarButton.OnVisibilityChanged C# (CSharp) Метод

OnVisibilityChanged() приватный статический Метод

private static OnVisibilityChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Результат void
        private static void OnVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (e.NewValue != e.OldValue) {
                var button = ((BindableAppBarButton)d);
                BindableAppBar bar = button.Parent as BindableAppBar;

                if (bar != null) bar.Invalidate();
            }
        }