private void SplashScreenVisual() { var animation = new DoubleAnimation { To = 0, BeginTime = TimeSpan.FromSeconds(4), Duration = TimeSpan.FromMilliseconds(500), FillBehavior = FillBehavior.Stop }; animation.Completed += (s, a) => { SplashScreen.Visibility = System.Windows.Visibility.Hidden; WelcomeText.Visibility = System.Windows.Visibility.Hidden; ExplanationText.Visibility = System.Windows.Visibility.Hidden; ExplorationText.Visibility = System.Windows.Visibility.Hidden; InderminatePB.IsIndeterminate = false; InderminatePB.Visibility = System.Windows.Visibility.Hidden; this.ResizeMode = System.Windows.ResizeMode.CanResizeWithGrip; }; SplashScreen.BeginAnimation(UIElement.OpacityProperty, animation); }