|
Article relates to
|
How to Style RadTreeViewItem
|
|
Created by
|
Boryana Miloshevska
|
|
Last modified
|
11.26.2009
|
|
Last modified by
|
|
If you want to customize the appearance of a RadTreeViewItem then you have to edit its template and apply it as a custom Style. This tutorial is based on Office_Black theme which is the default theme for RadControls for Silverlight/WPF.
In the sample project above you can see how to change the current parts from the control template.
You can also :
-set different image size
-apply different visual styles
-change the colors of corresponding elements
-add new elements in the template
-fully customize the template etc.
You can apply a custom style either by :
<telerikNavigation:RadTreeView ItemContainerStyle="{StaticResource RadTreeViewItemStyle}"/>
or
<telerikNavigation:RadTreeViewItem Style ="{StaticResource RadTreeViewItemStyle}"/>
Alternatively you can set the Template directly :
<telerikNavigation:RadTreeViewItem " Template="{StaticResource TreeViewItemDefaultTemplate}"/>
Please
Sign In
to rate this article.