Wpf ScrollViewer Scroll Amount

前端 未结 4 854
慢半拍i
慢半拍i 2021-02-05 08:03

Is it possible to change the amount that the WPF ScrollViewer scrolls? I am simply wondering if it\'s possible to change the scrollviewer so that when using the mouse wheel or t

4条回答
  •  情深已故
    2021-02-05 08:31

    I did this to ensure whole numbers on scrollbar1.ValueChanged:

    scrollbar1.Value = Math.Round(scrollbar1.Value, 0, MidpointRounding.AwayFromZero)
    

提交回复
热议问题