在两个屏幕上调整大小时 wpf 窗口重影问题 [英] wpf window ghosting problem when resizing over two screens

查看:57
本文介绍了在两个屏幕上调整大小时 wpf 窗口重影问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题几乎描述了它.如果我调整我的 WPF 应用程序的大小,使其在双显示器设置中延伸到两个显示器上,然后将其调整回原来的大小,则第二个显示器中将有一个不执行任何操作的幻影窗口,但当我在其中移动原始窗口时仍会移动第一个屏幕.

The title pretty much describes it. If I resize my WPF app so that it stretches over two monitors in a dual monitor setup, and resize it back, there will be a ghost window in the second monitor that does nothing, but is still moved when I move the original window in the first screen.

有人遇到过这样的问题吗?我认为这是某些操作系统上的刷新错误(我使用 WINXP 32 位),但想与社区确认.

Has anyone had issues like this? I think its a refresh bug on some OSs (I use WINXP 32 bit), but would like to confirm with the community.

推荐答案

是的,我们得到了很多.通常它与旧硬件(例如集成显卡)有关,但它也会发生在新硬件上(例如带有最新驱动程序的 Quadro NVS 295).有时,重影的数量取决于拖动窗口的速度.

Yes, we get this a lot. Usualy it is related to old hardware (eg. integrated graphics card), but it happens on new as well (eg. quadro NVS 295 with the latest drivers). Sometimes the amount of ghosting depends on the speed the windows is dragged with.

再说一次,我们无法在 Quadro 450 或 290 上重现它,所以它似乎是一个驱动程序问题.

Then again, we can't reproduce it on quadro 450 or 290 so it seems it's a driver issue.

有两种解决方法 - 将 AllowTransparency 设置为 false 或禁用硬件加速.

There are 2 ways to solve it - set AllowTransparency to false or disable HW acceleration.

话虽如此,这是我们在多显示器环境中使用 WPF 时遇到的较小问题之一...

This being said, this is one of the smaller problems we had with WPF in multi-monitor environments...

这篇关于在两个屏幕上调整大小时 wpf 窗口重影问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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