I am using ListView to display some items, let say of height 100. In case of many items, the Vertical scroll bar is displayed with ScrollViewer properties. However, when a user scrolls through the list, it is getting scrolled half of screen at times so with one scroll it covers the entire list view.
I want to have some code to set the amount of scroll, say 100 height at the time. I tried by searching through the doc but couldn't find anything. Actually, data comes from binding and number of items varies, but its fine to have some fixed height for each item.
Sample Code:
<ListView Name="lvSummaryList" ScrollViewer.VerticalScrollMode="Enabled"
ScrollViewer.IsVerticalRailEnabled="True"
VerticalAlignment="Bottom"
SelectionMode="None" ScrollViewer.VerticalScrollBarVisibility="Auto"
ScrollViewer.HorizontalScrollMode="Disabled" ScrollViewer.IsVerticalScrollChainingEnabled="True"
Margin="0,5,10,0"
MaxHeight="600" >
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid Orientation="Horizontal" GroupPadding="1" Margin="1" MinHeight="100" MaxHeight="200" MaximumRowsOrColumns="4" VerticalAlignment="Center"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
How do I accomplish this, is there property or even available to override the current behavior?