开发者

Set line and page size for ScrollViewer

开发者 https://www.devze.com 2023-04-12 09:15 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号