MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

PopupEx makes dialoghost windows pop up on top of other applications

Open mrfrostfire opened this issue 10 years ago • 5 comments

When using DialogHost it should be placed on top of everything inside the ownerwindow, but not outside the ownerwindow. But since PopupEx is set to use TopMost instead of NoTopMost, it will make the pop up on top of other applications. This is handled with the window deactivated call, where it sets it to NoTopMost. But if the dialog is opened when the ownerwindow is not the active window, the dialog will instead popup as TopMost over other applications.

This should be able to get fixed by setting the initial state to TopMost/NoTopMost based on the current state of the window instead of always setting it to TopMost as default.

mrfrostfire avatar Jun 13 '16 23:06 mrfrostfire

Also, when using DialogHost and debugging, the dialog remains on top of VisualStudio, making it really anoying. The TopMost state should be removed, or at least, make it optional, please!

rgonzalezVW avatar Feb 01 '17 11:02 rgonzalezVW

Any solution to this?

FINDarkside avatar Aug 01 '18 10:08 FINDarkside

I can support optional, because I cannot predict how this would affect applications hosted inside other applications

jespersh avatar Aug 01 '18 11:08 jespersh

There are a couple things here. First PopupEx is coming from another repository so any changes to it would have to start there. There is an alternate DialogHost template that is scheduled to be released as part of the 2.5.0 release that will place the dialog as part of the visual tree within the window.

Keboo avatar Aug 01 '18 15:08 Keboo

Is there an ETA on this update?

JamesCoyle avatar Aug 13 '18 14:08 JamesCoyle