I am trying to add color to tree View in WPF.
I am trying to use following line but it does not work:
item.Foreground = System.Drawing.Color.Red;
-------------------------------------------------------------------------------------------------TreeViewItem item = new TreeViewItem();item.Tag ="10"item.Header = "Test1"//FOLLOWING LINE DOES NOT WORKtem.Foreground = System.Drawing.Color.Red;item.Items.Add("*");tree. Items.Add(item);ThanksDNB