I am working on a touch screen on a small device and the custom width of the scroll-bar is no good as one of my requirements is that everything needs to be doable by finger gestures.
How can I set the width of the WPF ScrollViewer scrollbar?
Note that I don't wanna change the width of all the scrollbars on the device (doable through windows settings) - only the ones in my app.
The
ScrollBar
template reaches out for system parameters to determine its width/height (depending on orientation). Therefore, you can override those parameters:Here is a XAML solution:
Kent's answer can also be applied to easily all scrollbars in your application by placing it in your
App.xaml
resources, and by specifying the horizontal height key as well.