Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Creating complex WPF-Window in Background
- Thread thread = new Thread(() =>
- {
- Window windowInAnotherThread = new Window();
- windowInAnotherThread.Show();
- System.Windows.Threading.Dispatcher.Run();
- }) { IsBackground = true };
- thread.SetApartmentState(ApartmentState.STA);
- thread.Start();
Add Comment
Please, Sign In to add comment