xaml - Distorted text rendering WPF (see screenshots) -


has seen specific kind of distortion xaml text rendering?

field labels

more field labels

text on gradient background

this happens when page first renders when browser re-sized bigger or smaller render correctly.

i have tried different text-rendering settings , made sure not setting height or width constraints impacting text.

this happens text of custom buttons created. have effects-rendering? buttons , groupboxes have dropshadows, affect plain text on white background?

thanks! jeff

does have effects-rendering? buttons , groupboxes have dropshadows, affect plain text on white background?

yes. setting effect, bitmapeffect, or cachemode on element causes element rasterized, i.e., converted scalable vector form bitmapped form. can create visual artifacts jagged edges (aliasing) when element gets positioned across device pixels or scaled in size, , text elements tend suffer most.

i avoid using such effects when possible. may able mitigate problems setting uselayoutrounding (wpf 4+) or snapstodevicepixels (wpf 3.5+) on ancestor element true. better still, can follow @matthewwalton's advice , place content in front of whichever elements have effects applied instead of within.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -