0

Refer to this post https://prismlibrary.com/docs/wpf/dialog-service.html

  1. Show a dialog via the following code
_dialogService.Show("MyDialog1", new DialogParameters($), r => { });
  1. Move another Window of some other process over the Shell window(e.g MainFrame) of testing prism project. and "MainFrame" is hidden behind.
  2. Click the the icon of MainFrame in the taskbar to bring "MyDialog1" and "MainFrame" to topmost, they become visible.
  3. Close MyDialog1, then observe.
  4. When close "MyDialog1", it is expected only to close "MyDialog1" and "MainFrame" should be stay shown normally, but observed that, the "MainFrame" is minimized unexpectedly.

Tested with Prism of 8.0.0.1850, this issue still exists since prism 6 How to improve the behavior of show nonmodal dialog?

  • Tested with a simple WPF(.NET Core) application, without "prism", this issue is also existing, Not sure whether this is the WPF behavior or a WPF bug. – willy li Oct 13 '20 at 02:42
  • Found solution from https://stackoverflow.com/questions/3144004/wpf-app-loses-completely-focus-on-window-close – willy li Oct 13 '20 at 02:48

0 Answers0