WPF CheckBox rendering problem + solution

3 10 2007

Ok, this might not be an issue for all systems, but few (like mine )

Here is the problem. I will explain with screenshots

First, the good one which is from Vista Control Panel,

And the bad one which is built using Visual Studio 2005/2008 beta 2 and also with Expression Blend,the result is same

Can you notice the tick mark above, how bad it looks


To solve the above problem, we have to set the rendering option for CheckBox as below,


So, if anybody are stuck with this problem, do not forget to set the RenderOptions for your CheckBox !





2 responses

5 10 2007

‘Aliased’!? Weird – one of the MS guys suggests elsewhere this may be a pixel alignment thing, causing odd rendering, and points out that RenderOptions.EdgeMode=”Aliased” is only ‘partly supported’ for legacy compatibility; it’s also suggested that performance will be hit slightly. Did you check out SnapsToDevicePixels to see if that helped?

5 10 2007

Hi James,

I had already tried this – SnapsToDevicePixels=”True” but it didnt work out. And this was suggested in the MSDN WPF forums. If you can contact your MS friends, could you please ask them ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: