private void ShowSplash() { // Create the window AnimatedSplashScreenWindow animatedSplashScreenWindow = new AnimatedSplashScreenWindow(); splashScreen = animatedSplashScreenWindow; // Show it animatedSplashScreenWindow.Show(); // Now that the window is created, allow the rest of the startup to run ResetSplashCreated.Set(); System.Windows.Threading.Dispatcher.Run(); }