Hi,
I am having a treeview, where the the ItemTemplate is having a grid with mousedown and touchdown events.
Now the problem is, while swiping on the treeview in the touch screen, the treeview is not scrolling.
I think that, the items in the template is eating that, since it is having the respective events.
I have seen generally, listbox, treeview etc, reacts and scrolls for the swipe in the touch screen.
My problem is, how to detect, the user is swiping in what direction for this case,
(so that I can able to judge the user is swiping the screen, and not intended to touch anything)
so that,I can able to scroll the scroll viewer programmatic, or is there any better way to achieve this.
Hereby, I have a shared a bit of codeset.
May I kindly know, how to achieve this?
Thanks in advance.
I am having a treeview, where the the ItemTemplate is having a grid with mousedown and touchdown events.
Now the problem is, while swiping on the treeview in the touch screen, the treeview is not scrolling.
I think that, the items in the template is eating that, since it is having the respective events.
I have seen generally, listbox, treeview etc, reacts and scrolls for the swipe in the touch screen.
My problem is, how to detect, the user is swiping in what direction for this case,
(so that I can able to judge the user is swiping the screen, and not intended to touch anything)
so that,I can able to scroll the scroll viewer programmatic, or is there any better way to achieve this.
Hereby, I have a shared a bit of codeset.
<TreeView ScrollViewer.PanningMode="Both" ItemsSource="{Binding CategorisedMenuItems}" Name="SourceHolder"><TreeView.ItemTemplate><HierarchicalDataTemplate ItemsSource="{Binding ChildImageContainer}"><Grid MouseLeftButtonDown="TreeViewItem_MouseLeftButtonDown" TouchDown="TreeViewItem_TouchDown" ><!-- Some More Code To Go--></Grid></HierarchicalDataTemplate></TreeView.ItemTemplate></TreeView>
May I kindly know, how to achieve this?
Thanks in advance.
NANDAKUMAR.T