Set line and page size for ScrollViewer
Is it possible to set the number of logical units 开发者_如何学运维the ScrollViewer
should scroll when either clicking the arrows of the scrollbar (line up, line down) or inside the scrollbar (page up, page down)?
You can try this:
ScrollBar verticalScrollBar = scrollViewer.Template.FindName("PART_VerticalScrollBar", scrollViewer) as ScrollBar;
verticalScrollBar.SmallChange = 5;
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/577fdd3a-e416-43ec-b2a0-9d36ba8be3f3/
Other than that, I can't find any out-of-the box solution without you rolling your own.
Wpf ScrollViewer Scroll Amount
精彩评论