简体   繁体   English

如何在WPF中的弹出控件之上获取消息框?

[英]How to get message box on top of the Popup control in WPF?

We are showing an error message from the popup control.Message box is coming but it is coming behind the popup control. 我们正在显示弹出控件的错误消息。消息框即将出现,但它正在弹出控件后面。 How do i make popup to go back or message box to come in front. 如何让弹出窗口返回或消息框出现在前面。 It is with MVVM. 它与MVVM一起使用。

I don't think there's anything you can do about this. 我认为你无能为力。

Have a look at WPF Popup ZOrder 看看WPF Popup ZOrder

The solution suggested there is to implement your own popup control instead of using the inbuilt one, and just raise its Z index so it appears where you want it to. 解决方案建议实现自己的弹出控件,而不是使用内置的弹出控件,只需提高其Z索引,使其显示在您想要的位置。

https://gist.github.com/903202 ..只需使用使用现有弹出控件创建的弹出窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM