Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: MessageBox and Application Losing Focus Issue

$
0
0
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?

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>