public static void Main() { Thread thread = new Thread( new System.Threading.ThreadStart( delegate() { SplashScreenHelper.SplashScreen = new SplashScreenView(); SplashScreenHelper.Show(); System.Windows.Threading.Dispatcher.Run(); } )); thread.SetApartmentState(ApartmentState.STA); thread.IsBackground = true; thread.Start(); var application = new App(); application.InitializeComponent(); application.Run(); }
private void MediumButton_Click(object sender, RoutedEventArgs e) { SplashScreenHelper.Hide(); }