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

Change RadTreeView BackColor

1 Answer 343 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
melkorman
Top achievements
Rank 1
melkorman asked on 17 Nov 2010, 03:26 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 17 Nov 2010, 03:42 PM
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
Tags
Themes and Visual Style Builder
Asked by
melkorman
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or