PopupContent occludes the MessageBox

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 9 months ago by yejianbiao
Version: 23.1.4
Avatar

hello,

I used the PopupButton control, when PopupContent is opened, show MessageBox, PopupContent will occludes the MessageBox, is there any way to solve this problem.

Comments (1)

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

WPF Popups are set to be "topmost" in Windows and WPF doesn't provide an option to change that.  PopupButton uses the standard WPF Popup so it's unfortunately out of our control.

Your options would be:

1) Redesign your UI so that you aren't using a popup that stays open when a MessageBox is displayed.

2) Redesign your UI so you should the message in some other way than a MessageBox.

3) Look at possible workaround described online like in this StackOverflow thread or this MSDN article.  Many of the workarounds described in those require Win32 API calls that would fall outside the scope of our support since this issue is in Microsoft's core WPF code and can be reproduced without our controls.


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.