Blurred text in WPF only at program start

I have a problem with blurry text in WPF. I know that there are these options TextFormatting="Display", and I walked a lot, but the fact is that this is still not the case. Let me demonstrate:

WPF blurry text

The left side is what I see in the Visual Studio 2011 Developer Preview β€œ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 most enjoyable, but none of these options in real-time mode of the program looks good.

This is the code:

<StackPanel TextOptions.TextFormattingMode="Display">
    <TextBlock>Hello World ... ClearType</TextBlock>
    <TextBlock TextOptions.TextRenderingMode="Grayscale">Hello World ... Grayscale</TextBlock>
    <TextBlock TextOptions.TextRenderingMode="Aliased">Hello World ... Aliased</TextBlock>
</StackPanel>

How to render text as it appears in preview mode right inside Visual Studio?

EDIT. , , WPF- . - WPF ClearType.

+5
1

:

<TextBlock Text="ClearType ENABLED." RenderOptions.ClearTypeHint="Enabled"/>

ClearTypeHint MSDN

+7

All Articles