WPF 여러개의 UI Thread 뛰우기.. WPF



출처 : https://eprystupa.wordpress.com/2008/07/28/running-wpf-application-with-multiple-ui-threads/

좋은 글...

결론은 아래코드명 끝!!!

Thread thread = new Thread(() =>
{
     Window1 w = new Window1();
     w.Show();

     w.Closed += (sender2, e2) => w.Dispatcher.InvokeShutdown();

     System.Windows.Threading.Dispatcher.Run();
});

thread.SetApartmentState(ApartmentState.STA);
thread.Start();




구글광고