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

RadTreeViewItem highlighted control template size/style

5 Answers 124 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 15 Apr 2009, 11:29 AM
Hi

I have a RadTreeView with several items, as shown here:

http://tinypic.com/view.php?pic=29m6sxs&s=5

Is there a way to change the RadTreeViewItem's highlighting yellow selection bar to not span across until the end of the tree view, but to end when where the tree view item's label ends?

The TreeView may get quite wide so I don't want the selection highlight to span until the rightmost portion of it, so ideally it would span from the beginning of the item until the end of the item.

Many thanks

5 Answers, 1 is accepted

Sort by
0
Accepted
Ivan
Telerik team
answered on 15 Apr 2009, 04:07 PM
Hi Julian Borthwick,

Currently you should set a new template to the tree item in order get a shrunk highlighting.

Best wishes,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tao Jiang
Top achievements
Rank 1
answered on 03 Nov 2009, 06:00 PM
I have the same issue, Can you send an example of setter?

Thanks,
0
Dimitrina
Telerik team
answered on 06 Nov 2009, 12:47 PM
Hello Tao Jiang,

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/silverlight/radcontrols-for-silverlight-expression-blend-support.html 

Please find attached an example.

If you have any further question please do not hesitate to ask.

I hope this will help you.

Regards,

Dimitrina
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Vlada
Top achievements
Rank 1
answered on 27 Dec 2009, 03:23 PM
Hi,
how can I apply new modified Style to all subitems. Is there better way to set it up for all items than explicitly set Style for each item?

Thank you.
0
Bobi
Telerik team
answered on 28 Dec 2009, 09:23 AM
Hello Vlada,

You can use ItemContainerStyle property. For more information please rake a look at the online help articles:
http://www.telerik.com/help/wpf/radtreeview-styling-and-appearance-item-container-style.html

All the best,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Julian
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Tao Jiang
Top achievements
Rank 1
Dimitrina
Telerik team
Vlada
Top achievements
Rank 1
Bobi
Telerik team
Share this question
or