Topic Author
Posts: 5
Joined: 29 Jul 2015, 14:26

ListBox touch scrolling

30 Jul 2015, 19:05

We are diving deep in the Noesis trial.
Our mission is to have ListBoxes with custom templates (DataTemplate) inside that react beautifully to touch
(we will have dozens of images inside, performance on mobile is our first test).

However, we cannot touch-scroll a Listbox as simple as that:
<ListBox Margin="0" ScrollViewer.VerticalScrollBarVisibility="Disabled">
			<ListBoxItem Content="Item1"/>
			<ListBoxItem Content="Item2"/>
                        ... many more items outside of viewable area
It works if compiled in WPF, but doesn't react to touch in Android platform (didn't try iOS yet).
We can select individual elements, and with the scrollbar it works, but we want to achieve the smooth touch scrolling.

Can you help?
User avatar
Site Admin
Posts: 3338
Joined: 20 Jan 2012, 17:18

Re: ListBox touch scrolling

30 Jul 2015, 19:51

This sample is working fine for me, I can touch scroll:

<ListBox Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" Height="200"> 
         <ListBoxItem Content="Item1"/>
         <ListBoxItem Content="Item2"/>
         <ListBoxItem Content="Item3"/>
         <ListBoxItem Content="Item4"/>
         <ListBoxItem Content="Item5"/>
         <ListBoxItem Content="Item6"/>
         <ListBoxItem Content="Item7"/>
         <ListBoxItem Content="Item8"/>
         <ListBoxItem Content="Item9"/>
         <ListBoxItem Content="Item10"/>
         <ListBoxItem Content="Item11"/>
         <ListBoxItem Content="Item12"/>
         <ListBoxItem Content="Item13"/>
         <ListBoxItem Content="Item14"/>
         <ListBoxItem Content="Item15"/>

So I would say we have a deviation from WPF because when the VerticalScroll is disabled we are also disabling the scrolling behavior. I think this is a bug, I need to investigate it a bit more.

Who is online

Users browsing this forum: Google [Bot] and 2 guests