Hi Miroslav Stantic,
You can edit the default
ControlTemplate of the
RadTreeViewItem in
ExpressionBlend following the approach described
here. In the
RadTreeViewItem template there are
MouseOverVisual and
SelectedVisual elements, that define the borders displayed during the
Selected and
MouseOver visual states of the control.
When you edit the
ControlTemplate of the
RadTreeViewItem in Blend, all related resources should be generated as well, including the following brushes:
- ControlSubItem_OuterBorder_MouseOver - defines the MouseOver state outer border color
- ControlSubItem_InnerBorder_MouseOver - defines the MouseOver state inner border color
- ControlSubItem_Background_MouseOver - defines the MouseOver state background color
- ControlSubItem_OuterBorder_Selected - defines the Selected state outer border color
- ControlSubItem_InnerBorder_Selected - defines the Selected state inner border color
- ControlSubItem_Background_Selected - defines the Selected state background color
Since the
MouseOver/Selected background colors are defined by the
ControlSubItem_Background_MouseOver and
ControlSubItem_Background_Selected LinearGradientBrushes, if you want to keep the borders and remove only the background colors, you can replace these brushes with
SolidColorBrushes with
Transparent color:
I attached a sample project illustrating this approach. I hope it helps. Still, if you need more info, please let us know.
Best wishes,
Tina Stancheva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it.
Learn more>>