PDA

View Full Version : WPF CheckBox Rendering Problem + Solution



chakkaradeep
October 3rd, 2007, 12:48 AM
Ok, this might not be an issue for all systems, but few (like mine :cubs:)

Here is the problem. I will explain with screenshots

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

http://i33.photobucket.com/albums/d74/chaks_2k/cp-checkbox.png

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

http://i33.photobucket.com/albums/d74/chaks_2k/chaks-checkbox.png

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

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


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

:cool:

kirupa
October 6th, 2007, 05:50 PM
Go to your Control Panel and search for "Visual Effects". You will see a list of checkboxes outlining visual settings enabled on your system. Are all of the checkboxes checked?

:)