Alex Rivera | Logout

Popup always stays on top

Asked 2011-09-30T06:57:40.557
23

I've WPF application which has one Main window on which I'm opening a Popup window. The problem I'm facing is the Popup window always stays on top. If I open some other application(any windows application) the main window goes into background but the Popup windows remain on top.However if I minimize the Mainwindow the Popup also minimizes.

Below image shows the problem. The PopUp window is appearing on top of Notepad application

Please help on overcoming this issue.

Update:

I am opening the Popup as below

 myPopup.IsOpen = true;
Edit
Report

1 Answer

11

H.B. is correct - WPF Popup control was not intended do be not top-most. On the other hand - check out the following blog post on using user32 for achieving your goal: http://chriscavanagh.wordpress.com/2008/08/13/non-topmost-wpf-popup/

answered 2011-09-30T07:39:03.997

Your Answer