One, baked sweet potato version of the. This version does not install content scrolling, and the mouse wheel scrolls once the same distance,
Specific steps to refer to his blog, to point out that,
1,scrollviewer.cancontentscroll= "False"
2, container template virtualization StackPanel replaced with non-virtual.
<itemspaneltemplate x:key= "ItemsPanelTemplate1" ><stackpanel isitemshost= "True"/></ Itemspaneltemplate>
Two, installation content scrolling,, pulley scroll once, ListBox move 3 items, experience not one of the good ... Scrollviewer.cancontentscroll= "True"
<itemspaneltemplate x:key= "ItemsPanelTemplate1" > <virtualizingstackpanel isitemshost= "True" > <i:interaction. behaviors> <ei:fluidmovebehavior appliesto= "Children"/> </i:interaction. behaviors> </VirtualizingStackPanel> </ItemsPanelTemplate>
Very simple effect,,, download demo
WPF, ListBox, 2 ways to smooth scrolling.