WPF窗口刷新为垃圾 [英] WPF windows refresh with garbage

查看:62
本文介绍了WPF窗口刷新为垃圾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经注意到Expression Blend和我们自己的WPF应用程序都存在问题,其中应用程序进入一种状态,如果另一个窗口覆盖了该应用程序的窗口然后又被移动,则该应用程序窗口的暴露部分会被刷新垃圾.似乎有某种后备存储已损坏.我只要执行诸如窗口大小调整之类的操作来强制更新此后备存储,一切都很好.

在我们的应用程序中,这似乎发生在后台线程非常忙的时候.我无法描述是什么使它在混合中发生.

垃圾"是指看起来是由正确内容中的像素值组成的,但以某种块状模式重新排列.我希望我能附上一个屏幕截图,因为很难用语言来描述.

这是在XP下进行的.

还有其他人看到过吗?

I have noticed a problem with both Expression Blend and our own WPF applications in which the application gets into a state such that if another window covers the application's window and is then moved, then the exposed portion of the application's window is refreshed with garbage. It seems like there is some sort of backing store that has been corrupted. As soon as I do something like a window resize that forces this backing store to be updated, all is fine.
 
In our application this seems to occur during times when a background thread is very busy. I haven't been able to characterize what makes it happen in blend.
 
The "garbage" appears to be made up of pixel values from the correct content, but rearranged in some sort of blocky pattern. I wish I could attach a screen shot because it is hard to describe in words.
 
This is under XP.
 
Has anyone else seen this? Is there a fix?

推荐答案

我在2年之前见过这个问题吗?前.它与视频卡和驱动程序有关.换了我的卡,那些不需要的文物就消失了.


这篇关于WPF窗口刷新为垃圾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆