ListView Change background of single item



Let's assume I have the following listview:



<ListView Name="list" />


and the following code inside my function:



list.Items.Add("red");
list.Items.Add("green");


How can I change the background of the first item to red and second one to green?


No comments:

Post a Comment