Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 private void MediumButton_Click(object sender, RoutedEventArgs e)
 {
     SplashScreenHelper.Hide();
 }