只需要修改SystemParameters.VerticalScrollBarWidthKey 以及SystemParameters.HorizontalScrollBarHeightKey就可以了,直接上代码。
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<Style TargetType="ScrollViewer">
<Style.Resources>
<sys:Double x:Key="{x:Static SystemParameters.VerticalScrollBarWidthKey}">8</sys:Double>
<sys:Double x:Key="{x:Static SystemParameters.HorizontalScrollBarHeightKey}">8</sys:Double>
</Style.Resources>
</Style>
</ResourceDictionary>