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

Making scroll bar appearance uniform for both RadTreeView and silverlight ListBox control

6 Answers 85 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gauri
Top achievements
Rank 1
Gauri asked on 28 Mar 2012, 12:31 PM
Hi there,
I have one simple silverlight ListBox control which is being replaced by RadTreeView control conditionally. The appearance of the scroll bar is significantly different in these two controls and easily noticed by the user. Is there any way I can turn at least either of the control's scrollbar look and feel uniform with that of the other control. Your help will be greatly appreciated.
[Attaching the current appearance screenshots for references ]

Thanks,
Gauri.

6 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 29 Mar 2012, 07:08 AM
Hello Gauri,

 Have you considered using our RadListBox? If you use RadListBox and RadTreeView you will have an out-of-the-box "theming consistency". Another solution is to use telerik Styles for the CheckBoxes and the Scrollviewer in the ListBox but this will be a lot of work. 

Kind regards,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Gauri
Top achievements
Rank 1
answered on 29 Mar 2012, 07:24 AM
Thank you for your suggestion, Petar.
Though using RadListBox will be a too much of a rework, as plain silverlight listboxes are being used at multiple places in the application I have. Even most of the other controls are silverlight controls which are consistent with the look and feel. As only RadTreeView control has a different appearance, changing it is only my option for now.

I tried to follow http://msdn.microsoft.com/en-us/library/cc278065(v=vs.95).aspx for my use, but I am yet to figure out how would I go about it.

Thanks,
Gauri.
0
Petar Mladenov
Telerik team
answered on 29 Mar 2012, 08:45 AM
Hi Gauri,

 I meant that using RadListBox will be easier instead of playing with Styles. The RadListBox and the ListBox have many equal property names and structure.
However, if you need to change the Style of the ScrollViewer from the RadTreeView, you have to get /extract from Blend the Template of the RadTreeView.

All the best,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Gauri
Top achievements
Rank 1
answered on 10 Apr 2012, 10:06 AM
RadListBox is not much of a help. First thing is that I have silverlight 4.0 toolkit installed on my development box and even after importing following namespace, I still cannot see RadListBox control.
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
 So the option that I would want to opt for is to use Template of the RadTreeView extracted from Blend. Could you please advise how would I go about it ? Any useful links will also greatly help.

Thanks,
Gauri.
0
Gauri
Top achievements
Rank 1
answered on 11 Apr 2012, 11:46 AM
All I want is to apply same styling of scroll bar to silverlight ListBox as that of telerik controls or to telerik treeview as that of silverlight listbox. In short I want a way to sync up themes both of these are using. Are telerik themes ready to
I need a qucik way to do this. Can anybody please help me with this?

0
Petar Mladenov
Telerik team
answered on 13 Apr 2012, 07:50 AM
Hi Gauri,

 The RadListBox is part of the Q1 2012 and may be you have an earlier version, so that is why you cannot see it / use it. When you install the RadControls for Silverlight in Program Files the paths to the desired themes are:
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2012\Themes\OfficeBlack\Themes\Office\Black\System.Windows.ListBox.xaml -  Telerik theme for MS ListBox
C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2012\Themes\OfficeBlack\Themes\Office\Black\TreeView.xaml -  the RadTreeView default theme

However, instead of playing with themes we highly recommend you to use Q1 and our RadListBox.


Kind regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Gauri
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Gauri
Top achievements
Rank 1
Share this question
or