ScrollBar with windows default style

4 posts, 0 answers
  1. Sternico
    Sternico avatar
    25 posts
    Member since:
    Sep 2009

    Posted 15 Mar 2010 Link to this post

    Hello,

    I'm using the telerik TreeView, which uses the default telerik style for the scrollbar. The other scrollbars in the application have the default windows style. How can I apply the default windows style to the telerik scrollbar?
  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 18 Mar 2010 Link to this post

    Hi Sternico,

    You can edit the default ControlTemplate and remove the Telerik theme, but an easier workaround is possible:

    <ScrollViewer Height="100" Width="100" HorizontalScrollBarVisibility="Auto" >
                <telerikNavigation:RadTreeView ScrollViewer.HorizontalScrollBarVisibility="Hidden"
                        ScrollViewer.VerticalScrollBarVisibility="Hidden">
                    <telerikNavigation:RadTreeViewItem Header="Item 1" />
                    <telerikNavigation:RadTreeViewItem Header="Item 2" />
                    <telerikNavigation:RadTreeViewItem Header="Item 3" />
                    <telerikNavigation:RadTreeViewItem Header="Item 4" />
                    <telerikNavigation:RadTreeViewItem Header="Item 5" />
                    <telerikNavigation:RadTreeViewItem Header="Item 6" />
                    <telerikNavigation:RadTreeViewItem Header="Item 7" />
                    <telerikNavigation:RadTreeViewItem Header="Item 8" />
                    <telerikNavigation:RadTreeViewItem Header="Item 9" />
                    <telerikNavigation:RadTreeViewItem Header="Item 10" />
                    <telerikNavigation:RadTreeViewItem Header="Item 11" />
                    <telerikNavigation:RadTreeViewItem Header="Item 12" />
                    <telerikNavigation:RadTreeViewItem Header="Item 13" />
                    <telerikNavigation:RadTreeViewItem Header="Item 14" />
      
                </telerikNavigation:RadTreeView>
            </ScrollViewer>

    Let me know if this approach will work for you.

    Sincerely yours,
    Tihomir Petkov
    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sternico
    Sternico avatar
    25 posts
    Member since:
    Sep 2009

    Posted 18 Mar 2010 Link to this post

    Thank you for your workaround. It looks good on the first look, but the problem is, that the scroll wheel didn't work as expected (it only wokrs, if the cursor is over the scrollbar). Have you an other solution?
  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 23 Mar 2010 Link to this post

    Hello Sternico,

    I updated the sample project to include a customized ControlTemplate for the TreeView. This way the ScrollBars will look like the default ones and the mouse wheel issue should be resolved. Please take a look at the project and let me know if it will work for you.

    Regards,
    Tihomir Petkov
    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.
Back to Top