This is a migrated thread and some comments may be shown as answers.

Reverse checkbox binding

2 Answers 246 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 16 May 2012, 04:57 PM
I know this is an odd request and probably not Ideal but is there anyway to set a wpf checkbox to be checked when the binding value is false and unchecked when it is true?  The checkbox is bound to a field in a database object and because of a legacy application I can't just reverse the values in the table. 

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 16 May 2012, 05:02 PM
Hello James,

You can try working with a converter (IValueConverter) and return the value you want. Let us know in case you need an assistance.

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Dev
Top achievements
Rank 1
answered on 16 May 2012, 05:37 PM
That worked. Thanks
Tags
General Discussions
Asked by
Dev
Top achievements
Rank 1
Answers by
Maya
Telerik team
Dev
Top achievements
Rank 1
Share this question
or