Monday, May 4, 2015

WPF Rendering Issue

A colleague mentioned that he had a strange UI error on his second monitor for a WPF application he’s working on:


This looks like a WPF rendering issue. 2 possible solutions I could think of:

    1. Change the Rendering Mode using the following code snippet:

      RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;

    2. Disable Hardware acceleration by adding the following registry key:  

      HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration, DWORD value=1

    More information can be found here:

    No comments: