-
October 11th, 2008, 04:14 AM
#1
Checkbox Binding in WPF
I have a scenario where my customized checkbox should be able to bind values (IsChecked) anything ex: Y, N or 1, 0 as Booleans. Currently I have implemented the IValueConverter interface and overrided the Convert and ConvertBack method adding my logic to convert the different values into bool appropriately. This works fine.
But now what I need to do is instead of putting this logic into the class file of customized checkbox, I would like to have all this code in my xaml file itself where I can using Templates configure different values as Booleans. Can you please guide me in achieving the same.
Thanks in advance
-
October 12th, 2008, 12:22 PM
#2
Re: Checkbox Binding in WPF
Can you post the xaml you have so far?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|