locked
Stopping scroll chaining on a touch device. RRS feed

  • Question

  • I am developing a windows 8 store app and have a necessity of putting a a set of listviews with vertical scroll enabled (and horizontal scrolling disabled) inside a scrollviewer that can scroll horizontally (and vertical scrolling disabled). The problem I am facing is when I run the app on a touch device, if while swiping to vertically scroll, even if the swipe direction is slightly other than vertical, the underlying scroll viewer too takes the event and the list view scrolls horizonally while the underlying parent moves horizontally causing jerkiness. Is there a way to prevent that. I have tried setting and resetting IsHorizontalScrollChainingEnabled and verticalscrollchainingenabled, but none of them are solving the problem. Please help!
    Saturday, November 23, 2013 11:11 AM

Answers

  • I believe using isverticalrailenabled set to true will fix this problem.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, November 25, 2013 2:09 PM
    Moderator