BendEg
BendEg

Reputation: 21128

WPF blurry font in one control

I have the problem, that the font in my application is blurry. The curious thing is, that only one control (Grid with Columns and Rows) is blurry, the rest works perfect:

Blurry Grid-Control

I have tried the following parameter, but that changed nothing:

RenderOptions.ClearTypeHint="Enabled" 
TextOptions.TextFormattingMode="Display" 
TextOptions.TextRenderingMode="ClearType"
SnapsToDevicePixels="True"

The same control (First is correct, second is blurry):

Same Control

Maybe someone has an idea how to solve this problem, thank you!

ANSWER: The problem was solved by using (Thank you Heena Patil):

RenderOptions.BitmapScalingMode="NearestNeighbor"

Upvotes: 0

Views: 409

Answers (1)

Heena
Heena

Reputation: 8654

Try this using

RenderOptions.BitmapScalingMode and RenderOptions.EdgeMode="Aliased"

RenderOptions.BitmapScalingMode="NearestNeighbor" or RenderOptions.EdgeMode="Aliased"

Upvotes: 2

Related Questions