关闭MessageBox后出现图形错误
如何避免以下屏幕截图中的图形错误:
当打开 FileDialog
并弹出一条消息(无论我是否要覆盖文件)时,就会发生错误。还有一些其他场合。我尝试了 this.InvalidateVisual 和 this.UpdateLayout 但它没有消失。仅当我将窗口移动到屏幕边界上方并再次居中时,它才会消失。
How can I avoid the graphic errors in the following screenshot:
The error occurs when a FileDialog
was opened and a message popped up whether I want to overwrite a file or not. There are some other occasions aswell. I tried this.InvalidateVisual
and this.UpdateLayout
but it didn't disappear. It only disappears when I move the window over the bounds of the screen and center it again.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们的软件在工作中遇到了(也许仍然遇到)同样的问题。似乎更换图形适配器并使用更新的驱动程序解决了这个问题。当然,一些经过测试的适配器/驱动程序组合在软件的其他部分引入了其他问题,因此这实际上是为了找到硬件和软件良好协同工作的最佳点(不幸的是)。
您始终可以查看使用软件渲染是否可以解决问题(请参阅此处)。暂时这样做只是为了确保这确实是问题所在。如果是这样,请测试其他硬件/驱动程序组合。如果没有,请告诉我们;-)。
Had (and perhaps still having) the same problem with our software at work. Seems replacing the graphics adapter and using updated drivers solved it. Of course, some tested adapters/drivers combinations introduced other problems in other parts of the software, so it is really all about finding the sweet spot where hardware and software work together well (unfortunately).
You could always see if using software rendering solves the problem (see more info here). Do it temporarily just to make sure this is really the issue. If so, test other hardware/drivers combos. If not, let us know ;-).