Getting blur text only if the window is not maximized in WPF

126 Views Asked by At

I know that there are a lot of questions about this subject but it seems that no one tells why this is happening:

Maximized window: no blur

unmaxmimized window: enter image description here

This only seems happen when I have the medium or the larger setting, with the smaller the text is always sharp: enter image description here

this is happening for all the text in the application, I already checked that the clear type is enabled and I read something about the allow transparency property I tried with both true and false but nothing changes.

How can I fix this?

2

There are 2 best solutions below

0
Miguel On

Have you tried changing the text options?

TextOptions.TextFormattingMode="Display"
0
presarioruby On

Try to modify the XAML:

<Setter Property="TextOptions.TextFormattingMode" Value="Display"/>

Also, not set the value to "Ideal" which is there by default.

<Viewbox Height="100" Stretch="Uniform" TextOptions.TextFormattingMode="Display"> <TextBlock FontFamily="Georgia">My Cool Text</TextBlock> </Viewbox>

Could be a bug in WPF but this workaround is in place for many users!