Example #1
0
        public static void Main()
        {
            uiThread = new Thread(DisplayApplicationSplashScreen);

            uiThread.SetApartmentState(ApartmentState.STA);
            uiThread.IsBackground = true;
            uiThread.Name         = "CoreComponents.WPF Demo Thread";

            uiThread.Start();

            // You can put your init logique here :
            Thread.Sleep(4000);

            applicationSplashScreen.Dispatcher.InvokeShutdown();
            applicationSplashScreen = null;

            var application = new App();

            application.InitializeComponent();
            application.Run();
        }
Example #2
0
 private static void DisplayApplicationSplashScreen()
 {
     applicationSplashScreen = new WpfSplashScreen();
     applicationSplashScreen.Show();
     Dispatcher.Run();
 }