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

Make GridView Vertical Scrollbar Wider (Material Theme)

2 Answers 269 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 2
Joshua asked on 19 Dec 2018, 12:42 AM

I have been trying without success to edit a copy of the Material theme for RadGridView in order to make the scrollbars wider.  I have been able to make the outer part wider, but not the inner bar. (that you drag)  Would you happen to have an example?  I would also accept changing the scrollbars globally. (I have tried that too but with no success)

I did try to follow the steps in https://docs.telerik.com/devtools/wpf/styling-and-appearance/how-to/styling-apperance-styling-scrollbars

but have had no luck with that either.  Advanced WPF styling is still bewildering to me or I might have been able to figure this out on my own.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 21 Dec 2018, 12:45 PM
Hello Joshua,

I've prepared a small sample project demonstrating how to increase the width and height of the vertical and horizontal scrollbars respectively.

Please have a look and let me know whether you're able to integrate this in your project as well. I look forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Joshua
Top achievements
Rank 2
answered on 21 Dec 2018, 05:59 PM
Thank you Dilyan!  That works a charm!  It looks like the secret sauce was:
<Style x:Key="ThumbHorizontalStyle" TargetType="Thumb" BasedOn="{StaticResource ThumbBaseStyle}">
    <Setter Property="Height" Value="45"/>
</Style>
<Style x:Key="ThumbVerticalStyle" TargetType="Thumb" BasedOn="{StaticResource ThumbBaseStyle}">
    <Setter Property="Width" Value="45"/>
</Style>

I had modified many other parameters in my attempts but I hadn't noticed that one.  It is very difficult when looking through a theme to identify which parameters apply to which parts.  Thank you again!

Tags
GridView
Asked by
Joshua
Top achievements
Rank 2
Answers by
Dilyan Traykov
Telerik team
Joshua
Top achievements
Rank 2
Share this question
or