I have a popubox in the mainwindow, when the window is minimized to tray the popup box is showing in the top left of the screen on hover even over another application.


I have the same problem
I tested a bit popupBox-dialoghost that has a popupBox for content. The problem seems fixed, but the problem comes back when there is a delay before the popupbox is shown and in the meantime the main window is not the activated window. I tried to debug it, the problem seems to come from PopupEx.
var hwndSource = (PresentationSource.FromVisual(this.Child)) as HwndSource;
returns null when the popupBox is shown and the mainwindow isn't the activated window.

I'm working on a fix for this.
Most helpful comment
I'm working on a fix for this.