WPF ListView non integral scrolling

2019-06-19 06:39发布

问题:

How do I turn off the integral scrolling in a WPF ListView? By default, scrolling a ListView jumps down so I must scroll a whole item at a time. I would like to scroll half way, quarter way, etc.

回答1:

Set the property ScrollViewer.CanContentScroll of your ListView to False. Then the contents will scroll pixel-wise.