Microsoft Developer Network >
Domovská stránka fór
>
Windows Presentation Foundation (WPF)
>
WPF Rendering Issues on Windows 7
WPF Rendering Issues on Windows 7
- Our application is very heavily using PNG Graphics for WPF UserControl backgrounds and WPF Window background . Our MainWindow hosts different WPF UserControls depending on the user selection just like TabControl. MainWindow and UserControls use different PNG images for background. We see rendering issues when the application is minimized and restored. We see some garbage getting rendered before the main window appears. This more like a bar code.
I was able to capture the rendering issue, please click this link http://cid-a93b20e2f136913a.skydrive.live.com/self.aspx/.Public/Capture.png
I was able to video capture the issue too, http://cid-a93b20e2f136913a.skydrive.live.com/self.aspx/.Public/capture-3.avi, Please note that this video only capture few frames with rendering issue, but we see this issue very consistenty.
Our application runs fine on Windows XP and Window Vista, but we wee this issue on Windows 7.
This to me more looks like rendering issue. Did anyone see this kind of issue?.
srini- Změněný typHua ChenMSFT, Moderátor8. července 2009 6:56RC version issue
Všechny reakce
- Hi Srinikat,I also faced same problem when I was using Windows 7 beta version. I don't know what is reason for this. But after upgrading from Beta to RC everything went fine..I think problem may be with display adapter or with built-in framework.
- Thank U for the input.
I used Windows 7 Build# 7229 but I still see the issue. Which version did you use?.
srini - Oh seems you are using leaked version. Sometimes problem might be with that version. I'm not sure of that. When I was using beta version that was also leaked version.Now I am using Windows 7 build# 7100. Everything works fine here.
- Hello Srini,
Could you please try the new RC to see if it works?
http://www.microsoft.com/windows/windows-7/download.aspx
Thanks.
Please mark the replies as answers if they help and unmark them if they provide no help - I downloaded Windows 7 build from above link and I tried it , but I still see the issue.
srini - Srini.. Have u tried same application on some other computer. Probably problem might be with your display adapter.and also try to run same on vista and xp and check if there isany error.
- Thank U.
Yes, I tried this on multiple PCs in our Lab and we can reproduce it very consistently. We don't see this issue on Windows-Vista and Windows-XP where it works great. - Srini, This seems Interesting.I think problem might be with windows 7. As Hua Chen marked this might be an issue with RC version of Windows 7.If possible can you post code for checking on my System?
- Thank U and Sure,
Our application is tightly coupled to API developed on the top of our driver. I need to create dummy version of this application and send it to you.
srini - I stripped down the application and posted it to http://cid-a93b20e2f136913a.skydrive.live.com/self.aspx/.Public/Windows%207%20Issue.zip
You can try this application as-is to see the issue.
Just minimize the application and maximize it multiple times to see the stripes.
Hua Chen,
Do you mind tying this application on Windows 7 to see what is happening?.
srini - Srini,I'm also getting your problem while running application.It seems the problem is with Windows 7 and I suggest you to post same issue to Windows 7 team.
- Hello Srini,
Hua Chen,
Do you mind tying this application on Windows 7 to see what is happening?.
Very sorry I haven't a test environment by hand.
You can also report an issue on the https://connect.microsoft.com/VisualStudio?wa=wsignin1.0
Thanks.
Please mark the replies as answers if they help and unmark them if they provide no help I get similar issue on Windows XP. I also have WPF app with png graphics and transparent layers, when minimizing and restoring, or just clicking somewhere absolutely randomly I get a bunch of garbage pixels, not just stripes. Like if you scramble pixels into Gaussian noise.
- srinikat,
try to set SnapsToDevicePixels to false for all the controls on the form. I just did it and have not seen the issue anymore. May be it will fix it.
if it helped you, please mark this as an answer. - There is a work around available now from http://support.microsoft.com/kb/963021
But in my case I resolved the issue by installing new driver for video card.

