Posts Tagged ‘ Width ’

[WPF] How to change the width of a Scrollbar (Scrollviewer)

If you are programming applications which should be used on a touch screen then you may have encountered the problem that it is tricky to use the scrollbar with the finger.
Because the default scrollbar is to small.

If you want to adjust the width of all scrollbars in your application you can put this piece of code into you resources

        <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">          
                <Setter Property="MinWidth" Value="35" />
                <Setter Property="Width" Value="35" />