Binding the IsSelected property of ListBoxItem to a property on the object from it's source.

Posted by BrandonS on Stack Overflow See other posts from Stack Overflow or by BrandonS
Published on 2009-12-09T17:19:58Z Indexed on 2010/05/07 12:28 UTC
Read the original article Hit count: 182

Filed under:

I have a WPF ListBox control and I'm setting it's "ItemsSource" to a collection of item objects. How can I bind the "IsSelected" property of the ListBoxItem to a "Selected" property of a corresponding item object without having an instance of the object to set as a binding.Source?

© Stack Overflow or respective owner

Related posts about wpf