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

Styling treeview

3 Answers 194 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
NS
Top achievements
Rank 1
NS asked on 18 Sep 2008, 07:05 AM
Hi,

I've got a problem styling the treeview i created.

I've added a template to it with an image and text (to display in the node) but i can't change the color of the nodes.

Even when i change de forecolor (to black) of the treeview its stays dark green.

Can you give some insights on this?

Regards

3 Answers, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 18 Sep 2008, 04:09 PM
Hello Nicolas,

Setting the foreground property to a treeviewitem should change the color of the text:
        <telerikNavigation:RadTreeView> 
            <telerikNavigation:RadTreeViewItem Header="Ite1" Foreground="Red"/>              
        </telerikNavigation:RadTreeView> 
 

If you are using a data template you should set the Foreground property of the TextBlock element.

Kind regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mayur
Top achievements
Rank 1
answered on 14 Sep 2010, 10:50 AM
Are there any pre-defined styles/themes available for treeview?
0
Dimitrina
Telerik team
answered on 16 Sep 2010, 11:24 AM
Hello Mayur,

Thanks for your interest in RadControls for WPF.

Please visit our demo where you can see all the themes which we have for our controls.

You can apply a custom theme to any of the controls. For more information you can follow the link below:

http://www.telerik.com/help/wpf/common-styling-appearance-edit-control-templates-blend.html

If you have further questions please do not hesitate to ask us.
I hope this will help you.



Sincerely yours,
Dimitrina
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
Tags
TreeView
Asked by
NS
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Mayur
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or