WinRT Xaml ListView - Touch doesn't scroll well

I have a horizontal view of the list that scrolls from the screen to the right, for example:

enter image description here

The problem is that when using touch, you cannot scroll to scroll the default ListView, it seems just grab the ListView element and pull it a bit horizontally. The only way I can scroll it is to click 5-10 pixels between each ListViewItem, which is horrible.

Is there any way to change this behavior?

My xaml is basically this:

<ListView x:Name="listView" Grid.Column="1" IsItemClickEnabled="True" ItemsSource="{Binding Assignments}" SelectionMode="None" ItemClick="OnItemClick"> <ListView.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ListView.ItemsPanel> <ListView.ItemTemplate> <DataTemplate> <!--cool template to make UI in screenshot--> </DataTemplate> </ListView.ItemTemplate> </ListView> 

Should I ask Jerry?

JERRY !!!!

+4
source share
1 answer

Hmm, due to having the ScrollViewer parent outside the ListView , I have a large โ€œpanoramaโ€ with 4 or 5 controls inside it, including the ListView .

I can fix this by setting this to a ListView :

ScrollViewer.HorizontalScrollMode="Disabled" ScrollViewer.VerticalScrollMode="Disabled"

+4
source

Source: https://habr.com/ru/post/1442833/


All Articles