MSDN > 論壇首頁 > Windows Presentation Foundation (WPF) > WPF Rendering Issues on Windows 7
發問發問
 

一般討論WPF Rendering Issues on Windows 7

  • 2009年7月2日 上午 02:10srinikat 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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

所有回覆

  • 2009年7月2日 上午 05:34Sasikumar D.R. 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.

  • 2009年7月2日 下午 11:49srinikat 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Thank U for the input.

    I used Windows 7 Build# 7229 but I still see the issue. Which version did you use?. 
    srini
  • 2009年7月3日 上午 05:20Sasikumar D.R. 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • 2009年7月8日 上午 06:55Hua ChenMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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
  • 2009年7月13日 下午 10:33srinikat 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I downloaded Windows 7 build from above link and I tried it , but I still see the issue.
    srini
  • 2009年7月14日 上午 03:55Sasikumar D.R. 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • 2009年7月14日 下午 04:47SRINIVAS K 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • 2009年7月15日 上午 05:35Sasikumar D.R. 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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? 
  • 2009年7月15日 下午 09:10srinikat 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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
  • 2009年7月16日 上午 12:34srinikat 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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
  • 2009年7月16日 上午 05:47Sasikumar D.R. 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • 2009年7月16日 上午 10:09Hua ChenMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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
  • 2009年7月23日 下午 09:11jhhhj 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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.

  • 2009年7月24日 下午 07:27jhhhj 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • 2009年9月15日 下午 06:28jhhhj 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.