Checkbox Binding in WPF
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Checkbox Binding in WPF

  1. #1
    Join Date
    Oct 2008
    Posts
    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
    Share on Google+

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,307

    Re: Checkbox Binding in WPF

    Can you post the xaml you have so far?
    Share on Google+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center