Listbox Scrolling Effect RRS feed

  • Question

  • Hello Everyone!

    I have this listbox. I resized it to only show one item at a time. 
    And I use this buttons to change to selected item, and 'scrollintoview' to show the selected item.

    Now I would want to some effect, when I change the selected item. Could be something like aceleration, in the moment of the transition beteween items.

    Anyone could point me in the right direction?

    In my testes, I used the ScrollhorizontalOffSet from a scrollviewer, but I didn't get the item centralized.
    That is why I came back to the listbox itself and used "selectedindex +=1" and 'scrollintoview'.

    Thank you all


    • Edited by Governm Monday, January 4, 2016 5:09 PM Insert image example
    Monday, January 4, 2016 5:08 PM


All replies

  • >>Anyone could point me in the right direction?

    Please refer to the following thread for more information and examples of how to animate the scrolling of a ScrollViewer in WPF: http://stackoverflow.com/questions/20731402/animated-smooth-scrolling-on-scrollviewer

    How to: Animate the Horizontal/VerticalOffset properties of a ScrollViewer: http://dlaa.me/blog/post/9857745

    Hope that helps.

    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

    • Edited by Magnus (MM8)MVP Monday, January 4, 2016 5:55 PM
    • Marked as answer by Governm Tuesday, January 5, 2016 3:17 AM
    Monday, January 4, 2016 5:54 PM
  • Thank you for the guidance.

    I was able to modify the dll code, because it was configured to animate vertical item transition.
    Now it is working nicely.


    Tuesday, January 5, 2016 3:17 AM