How to bind Listbox to two properties?

Posted by Gabriel on Stack Overflow See other posts from Stack Overflow or by Gabriel
Published on 2010-06-16T21:08:15Z Indexed on 2010/06/16 21:12 UTC
Read the original article Hit count: 177

Filed under:
|
|
|

I have in Silverlight a Grid with DataContext set to class ViewModel. ViewModel contains list of items (each of them containing int ID and string Text) and an integer "ID", which identifies actually active item (not selected item). I would like to construct xaml with ListBox where activated item has another color. How can I do it?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about databinding