none
[UWP]IsVerticalScrollChainingEnabled not working :( RRS feed

  • Question

  • I have nested scrollviewers in UWP app, the problem is scroll event is not passed to the parent when there's no more content in child scrollviewer.

    Expectation: When user move the cursor inside child scrollviewer and start scrolling using mouse's vertical wheel, content in child should scroll down till the end and after that parent scrollviewer should start scrolling. IsVerticalScrollChainingEnabled is not helping either.

    Here's my code:

    <ScrollViewer Margin="0" Background="Aqua">
            <RelativePanel Height="1500" Background="Red" HorizontalAlignment="Center">
                <ScrollViewer Name="ScrollViewerImages"
                              Height="400" Width="600"                       
                              Background="Blue" Margin="0,500,0,0"                               
                              VerticalScrollBarVisibility="Hidden"
                              IsVerticalScrollChainingEnabled="True">
                <Image Source="Assets\21_02_2018_121_008.jpg" Width="1200"  />
            </ScrollViewer>
        </RelativePanel>
    </ScrollViewer>


    Friday, May 25, 2018 1:12 AM

All replies

  • Hi Sadiq S Khoja

    The problem is not related to the IsVerticalScrollChainingEnabled property. The reason for the child scrollviewer could not be scrolled is that there is no content in the scrollviewer. Also, the content needs to be larger than the size of scrollviewer. You could made a test, just put a small image in the scrollviewer. You could see the scrollviewer is not scrollable. If you need to the scrollviewer could be scrolled, you need to put some content in to the scrollviewer.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, May 28, 2018 4:07 AM
    Moderator