public void DoSnip() { if (this.Visibility == Visibility.Visible) { HideSnip(); return; } this.Visibility = Visibility.Visible; this.IsHitTestVisible = true; // MainGrid.Opacity = 1; MainGrid.FadeIn(FadeTime, 250); this.Activate(); }
private void Window_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if (this.Visibility == Visibility.Hidden || this.Visibility == Visibility.Collapsed) { MainGrid.Opacity = 0; GridBackground.Opacity = 0; } if (this.Visibility == Visibility.Visible) { MainGrid.FadeIn(750); App.AppWnd.WindowTitle = "Authorization"; //Shadows.FadeIn(250); //LoginContent.FadeIn(250); GridBackground.FadeIn(5000, 1500); } }