Blur text with any text options

After clicking, for example, on a button without a handler (without any animation of the reation capture button), I have this ugly effect before my eyes:

image1image2

Blurring the text on the button is disabled after a second (from the first shot to the second, etc. to sharpness), then the text becomes sharp. I have this effect with any combination of the "TextOptions" options in XAML, including TextOptions.TextFormattingMode = "Display".

If I press a button that brings up, for example, select a file dialog box, everything will be fine.

How to avoid this blur? Have you ever seen this effect?

Besides. This effect appears only with TextSize = 11, and Aero is disabled. With TextSize, any other value is fine. But 11 is the default, so everyone can see this error!

+4
source share
1 answer

I don't know if you fixed it or not, but the solution should use the flag UseLayoutRounding="True" . Drop it on the button style and it will be fixed.

+1
source

Source: https://habr.com/ru/post/1389779/


All Articles