Beispiel #1
0
        private static void SplashScreenThreadStartingPoint()
        {
            App.AppSplashScreen = new TimeMerge.View.SplashScreen();
            App.AppSplashScreen.Show();
            App.SplashScreenCreatedEvent.Set();

            Dispatcher.Run();
        }
Beispiel #2
0
        public void CloseSplashScreen()
        {
            if (App.AppSplashScreen != null)
            {
                Action shutdownDispatcherAction = new Action(() =>
                {
                    App.AppSplashScreen.Dispatcher.InvokeShutdown();
                    App.AppSplashScreen = null;
                });

                // Access the splash screen on the thread which has created it.
                // When the closing animation completes, also shutdown that thread's Dispatcher.
                App.AppSplashScreen.Dispatcher.Invoke(new Action(() => App.AppSplashScreen.AnimatedClose(shutdownDispatcherAction)));
            }
        }