locked
ScrollIntoView and animation?

    Question

  • Hi,

    What is the way to make "slide-in" animation when calling ScrollIntoView()?

    Monday, October 14, 2013 2:04 PM

Answers

  • Hi Qello,

    I cannot tell what's inside because this is a packaged api and it's hardly to look into it.

    But I guess you could have a similar way to implement such behavior, ListView or GridView contains a ScrollViewer and which can be found out by VisualTreeHelper, ScrollViewer has a method named ScrollToHorizontalOffset method and ScrollToVerticalOffset method, by this two and some calculation you could implement a similar animation.

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, October 15, 2013 2:12 AM
    Moderator