It seems MessageBox (Xceed.Wpf.Toolkit) suffers the following issue (http://stackoverflow.com/questions/3144004/wpf-app-loses-completely-focus-on-window-close), the same as WPF-own's MessageBox.
For example, I have a MainWindow, and then open a ChildWindow using Show() and set its Owner to MainWindow.
When the ChildWindow closing, it prompts a MessageBox to save changes, if any data changes occur. The behavior is to close ChildWindow if data changes are saved (MessageBoxResult.Yes).
However, after MessageBox and ChildWindow closed, application (MainWindow) losing focus when it should re-focus back to MainWindow.
That's where the issue lies.
Note that the issue still exists even on setting MessageBox's Owner to either ChildWindow or MainWindow through Show()'s owner parameter.
Is there any workaround/solution to this issue?
For example, I have a MainWindow, and then open a ChildWindow using Show() and set its Owner to MainWindow.
When the ChildWindow closing, it prompts a MessageBox to save changes, if any data changes occur. The behavior is to close ChildWindow if data changes are saved (MessageBoxResult.Yes).
However, after MessageBox and ChildWindow closed, application (MainWindow) losing focus when it should re-focus back to MainWindow.
That's where the issue lies.
Note that the issue still exists even on setting MessageBox's Owner to either ChildWindow or MainWindow through Show()'s owner parameter.
Is there any workaround/solution to this issue?