This is a migrated thread and some comments may be shown as answers.

Setting forecolour of treeviewitem in code behind

1 Answer 45 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Cameron Molyneux
Top achievements
Rank 1
Cameron Molyneux asked on 04 Jan 2012, 05:13 PM
I use the metro theme but want to change the forecolur (only) of the treeviewitems

If possible i'd like to do it in code behind

Can it be done?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 06 Jan 2012, 03:30 PM
Hello Cameron,

The Foreground color of the RadTreeViewItems is defined through the Metro MarkerColor. You can change the metro colors following the approach described here.

I also attached a sample project to demonstrate how to change the RadTreeViewItem Foreground color in code-behind. I hope it helps.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Cameron Molyneux
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or