How could I change the default colour when a mouse moves over a treeview item? Also, how could I change the default colour when a treeview item is selected?
In order to apply these changes you have to edit the ControlTemplate of the RadTreeView in Blend. More information you can find here.
Then you will be able to modify the default style of the RadTreeView to match your requirements.
In order to modify the MouseOver and Selected background color of the RadTreeViewItem you can modify the MouseOver/Selected resource brushes - ControlSubItem_OuterBorder_MouseOver, ControlSubItem_InnerBorder_MouseOver, ControlSubItem_Background_MouseOver and ControlSubItem_OuterBorder_Selected, ControlSubItem_InnerBorder_Selected, ControlSubItem_Background_Selected.
Another approach is to set the new values in the MouseOver and SelectionVisual Borders:
I prepared a sample project illustrating the first approach. Please take a look at it and let me know if it works for you or if you need more info.
Regards,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items