简体   繁体   English

Windows XP上的WPF视觉问题

[英]WPF visual problems on Windows XP

We have a huge project in WPF .NET 4.0 which should support Windows XP SP3 and above. 我们在WPF .NET 4.0中有一个庞大的项目,它应该支持Windows XP SP3及更高版本。 (hence the use of .NET 4.0) It has no problems whatsoever on Windows 7 and 8/8.1. (因此使用.NET 4.0)它在Windows 7和8 / 8.1上没有任何问题。 However we're experiencing major visual issues when running on Windows XP to the point that the application is unusable. 但是,当在Windows XP上运行到应用程序无法使用时,我们遇到了主要的视觉问题。
I searched a lot and came across some similar questions such as this one but none of the suggested solutions worked for us. 我搜索了很多,并遇到了一些类似的问题,例如这个问题,但没有一个建议的解决方案适用于我们。
Here's an screen shot taken on Windows XP SP3: 这是在Windows XP SP3上拍摄的屏幕截图:
在Windows XP上
The odd thing here is that there is clone of "28" TextBlock you see in the screen shot, to the left of it. 这里奇怪的是,你在屏幕截图中看到了“28”TextBlock的克隆,在它的左边。 They have everything in common except their name but the left one is not rendered properly! 他们有一切共同的东西,除了他们的名字,但左边的一个没有正确呈现!
And here is how it really looks like (taken on a Windows 8.1 test machine): 以下是它的真实外观(在Windows 8.1测试机上拍摄):
在Windows 8.1上
Some pages are even worse: 有些页面更糟糕:
日历
When I remove AllowsTransparency from the main window, it looks like this on XP: (Note that the title bar has no problems any more) 当我从主窗口中删除AllowTransparency时,它在XP上看起来像这样:(注意标题栏不再有问题)
没有透明度
We're really stuck and have no clues about its cause. 我们真的陷入困境,没有关于其原因的线索。 Any help would be appreciated. 任何帮助,将不胜感激。

It seems this problem is related to the graphic card. 看来这个问题与显卡有关。 In another VM with a different graphics accelerator we didn't face any major problems. 在另一台具有不同图形加速器的VM中,我们没有遇到任何重大问题。 In the problematic test machine, we lowered hardware acceleration to the third level and the problem is gone. 在有问题的测试机器中,我们将硬件加速降低到第三级,问题就消失了。
Display Properties -> Settings -> Advanced -> Troubleshoot 显示属性 - >设置 - >高级 - >疑难解答
降低硬件加速
Although there are still some small issues with some mouse over animations and we lost the benefits cursor accelerations bring to the table, it's acceptable for us since not much is expected from Windows XP. 尽管某些鼠标悬停在动画上仍然存在一些小问题,但我们失去了光标加速带来的好处,但我们可以接受它,因为Windows XP预计不会太多。

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

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