title: Blurry text in WPF only when the program is ran
body: <p>I have been having this issue with blurry text in WPF. I know that there are these <code>TextFormatting="Display"</code> options and I've been googling a lot, but the thing is that it's still not right. Let me demonstrate:</p>
  
  <p><img src="https://i.stack.imgur.com/t5pCl.png" alt="WPF blurry text"></p>
  
  <p>The left side is what I see in Visual Studio 2011 Developer Preview's "preview mode", and the right side is what I see when I actually run the program. What I want is the left ClearType which is by far the nicest, but none of those options in actual program running mode look good.</p>
  
  <p>This is the code:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;StackPanel TextOptions.TextFormattingMode="Display"&gt;
      &lt;TextBlock&gt;Hello World ... ClearType&lt;/TextBlock&gt;
      &lt;TextBlock TextOptions.TextRenderingMode="Grayscale"&gt;Hello World ... Grayscale&lt;/TextBlock&gt;
      &lt;TextBlock TextOptions.TextRenderingMode="Aliased"&gt;Hello World ... Aliased&lt;/TextBlock&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>How do I render text the way it is rendered in the preview mode right inside Visual Studio?</p>
  
  <p><strong>EDIT</strong>: I found out that the reason that causes this problem is because I use <a href="http://archive.msdn.microsoft.com/WPFShell" rel="nofollow noreferrer">WPF Shell Integration Library</a> with the Glass style. This glass style somehow makes WPF to not use ClearType.</p>