How can i add different items with either background/foreground color different in WPF listbox?
views:
78answers:
3
A:
After tearing my hair out with this one (and your particular usecase might differ from mine) I found the WPF Toolkit's DataGrid cured all my needs.
Graphain
2010-07-12 09:04:22
A:
You may use an AlternationCount property, more info provided by this link
Or you can add to your objs binded to a listbox Background and Foreground properties and bind them in a DataTemplate of ListBox.ItemTemplate and change them in code however you like, properties must update themselves on every changing.
Eugene Cheverda
2010-07-12 09:09:07