Binding Listbox Items

Posted by Sergio on Stack Overflow See other posts from Stack Overflow or by Sergio
Published on 2010-05-09T07:31:04Z Indexed on 2010/05/09 7:38 UTC
Read the original article Hit count: 267

Filed under:
|
|

Hi, I have a user with it's roles, it's an entitycollection. I have a ListBox that has all possible roles, and I have them like checkboxes, but I want to bind the IsChecked property of each one to check if the user has the role.

Something like IsChecked={Binding Roles.Contains}

© Stack Overflow or respective owner

Related posts about binding

Related posts about listbox