WPF 组合框和菜单在后台打开
在我的一个项目中,我面临一个问题,组合框下拉菜单和上下文菜单有时不可见。我所说的有时,是指在大约 80% 的情况下它们可以正常打开,但相同的屏幕、相同的代码在 20% 的情况下会神秘地出现此问题。
当我观察其中一个 ModalPopup 窗口时,似乎菜单在弹出窗口下方打开。我想到的最明显的问题是 z-index。但如果这确实是问题所在,那么这种情况不是总是会发生吗?
这是 WPF 的已知问题吗?有解决办法吗?
In one of my projects, I am facing an issue where the combo box drop menu and the context menus are sometimes not visible. By sometimes, I mean that they open up fine in about 80% of the cases, but the same screen, with the same code will have this problem mysteriously 20% of the times.
When I observed one of the ModalPopup windows, it seems like the menus open beneath the popup window. The obvious question that came to my mind was z-index. But if that really was the issue, wouldn't this happen always?
Is this a known issue with WPF? Is there a solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几个与此相关的问题:
WPF4 bug 报告:
http://connect.microsoft.com/VisualStudio/feedback/details/465964/wpf-combobox-dropdown-list-appears-behind-the-form-when-allowstransparency-true
可能修补程序:
http://support.microsoft.com/kb/943326
There have been a couple issues related to this:
WPF4 bug report:
http://connect.microsoft.com/VisualStudio/feedback/details/465964/wpf-combobox-dropdown-list-appears-behind-the-form-when-allowstransparency-true
Possible hotfix:
http://support.microsoft.com/kb/943326