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

7 posts, 0 answers
  1. Gauri
    Gauri avatar
    4 posts
    Member since:
    Sep 2012

    Posted 28 Mar 2012 Link to this post

    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.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Gauri
    Gauri avatar
    4 posts
    Member since:
    Sep 2012

    Posted 29 Mar 2012 Link to this post

    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.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 Mar 2012 Link to this post

    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 >>
  6. Gauri
    Gauri avatar
    4 posts
    Member since:
    Sep 2012

    Posted 10 Apr 2012 Link to this post

    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.
  7. Gauri
    Gauri avatar
    4 posts
    Member since:
    Sep 2012

    Posted 11 Apr 2012 Link to this post

    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?

  8. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 13 Apr 2012 Link to this post

    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 >>

Back to Top
DevCraft banner