Guest User

Untitled

a guest
Aug 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Creating complex WPF-Window in Background
  2. Thread thread = new Thread(() =>
  3. {
  4. Window windowInAnotherThread = new Window();
  5. windowInAnotherThread.Show();
  6. System.Windows.Threading.Dispatcher.Run();
  7. }) { IsBackground = true };
  8. thread.SetApartmentState(ApartmentState.STA);
  9. thread.Start();
Add Comment
Please, Sign In to add comment