Is it safe to show multiple dialogs in WPF?
问题 Surprisingly one can show more than one dialog at a time by putting the ShowDialog() call on the Dispatcher: uiDispatcher.BeginInvoke(new Func<bool?>(myWindow.ShowDialog)); How come this works and still the UI remains running responding to user interaction once the dialog is shown (I would have thought not since ShowDialog() blocks the thread it is on which has to be the UI thread), one can even go on showing new dialogs: Window myWindow; for(int i = 0; i < 5; i ++) { myWindow = new Window();