Change RadTreeView BackColor

2 posts, 1 answers
  1. melkorman
    melkorman avatar
    16 posts
    Member since:
    Aug 2009

    Posted 17 Nov 2010 Link to this post

    Hello,

    I have applied the Office2010 theme to my WinForm application by adding the Office2010Theme to the form and setting

    ThemeResolutionService.ApplicationThemeName = Properties.Settings.Default.ApplicationThemeName;

    Everything works just fine and I am satisfied with the result, except for one small detail. I would like to change the background color of the RadTreeView to white instead of the default gray-ish. Setting the BackColor property of the RadTreeView control does not do the trick, so is there any other way I can do it (in code or otherwise)?

    Best regards
    Linus
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 Nov 2010 Link to this post

    hello,

    This should work, but let me know if you need further help

    Richard
    Me.RadTreeView1.TreeViewElement.BackColor = Color.White
    Me.RadTreeView1.TreeViewElement.GradientStyle = GradientStyles.Solid
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top