Visual Studio 2008 – Garbled Text in XAML View
Since switching to Windows 7 on my work laptop I've had pretty constant issues with the XAML designer in Visual Studio 2008. Essentially, when I scroll through the XAML code the text becomes garbled and near impossible to read. Switching back and forth between views works, but is a dirty, frustrating and somewhat time-consuming solution. It is also one of those things that works fine on everyone else's computer (to be honest I'm still not sure why) and is difficult to find appropriate keywords for when searching online.
This morning I came across an issue logged on Microsoft's connect page (http://connect.microsoft.com/VisualStudio/feedback/details/465834/visual-studio-2008-xaml-editor-doesnt-paint-properly) with similar symptoms to my own. In the comments section Mark Wilson-Thomas (of the WPF and Silverlight team) suggested doubling the number of available GDI handles - which is defaulted to 10,000 on Windows 7.
So, I updated the following registry key DWORD value from 2710 hex (10,000 decimal) to 4e20 (20,000 decimal)
I then restarted VS2008 and, voila, no more garbled text. Happy days!