Ghost1372

everything can be handy

ScrollViewer

ScrollViewerNativeBaseStyle

The default style of the native ScrollViewer is not recommended. It should always be used by other styles based on On.

Case:

1
2
3
4
5
<ScrollViewer>
<Grid Height="500">
<TextBlock Text="Content area"></TextBlock>
</Grid>
</ScrollViewer>

effect:

ScrollViewer.DefaultStyle

ScrollViewerUpDown

ScrollViewer style showing up and down buttons

Case:

1
2
3
4
5
6
7
8
<ScrollViewer Style="{StaticResource ScrollViewerUpDown}">
<StackPanel Height="500">
<TextBlock Text="Content area" Height="250"></TextBlock>
<TextBlock Text="Content area" Height="250"></TextBlock>
<TextBlock Text="Content area"></TextBlock>
<TextBlock Text="Content area"></TextBlock>
</StackPanel>
</ScrollViewer>

effect:

ScrollViewer.UpDownStyle

0%