Wpf ListViewItem Background binding to enum

Posted by Christian on Stack Overflow See other posts from Stack Overflow or by Christian
Published on 2010-03-22T11:10:36Z Indexed on 2010/03/22 11:51 UTC
Read the original article Hit count: 404

Filed under:
|
|
|

Hi Guys I´ve got a ListView which is bound to the ObservableCollection mPersonList. The Class Person got an enum Sex. What i want to do is to set the background of the ListViewItem to green if the person is male and to red if the person is female.

Thanks for the answers!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about listview