Setting forecolour of treeviewitem in code behind

2 posts, 0 answers
  1. Cameron Molyneux
    Cameron Molyneux avatar
    79 posts
    Member since:
    Jan 2010

    Posted 04 Jan 2012 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 06 Jan 2012 Link to this post

    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 >>

  3. DevCraft banner
Back to Top