Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Listbox Scrolling Effect

$
0
0

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


Valdirnm



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>