Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Strange behaviour when IsListContinuous set to true.
posted

I am trying to implement a continuous list in the XamCarouselListBox but have found some very strange behaviour in the scrolling actions.  I started with the following sample:

http://blogs.infragistics.com/blogs/ctaylor/archive/2008/06/17/carousel-listbox-selection.aspx

When the IsListContinues property is set to True, clicking on the right-hand items works until you select the first or second item in the databound list... then the carousel jumps that item back to beginning and scrolls the wrong direction.  I have tried numerous ways to fix it but nothing great.  I have one solution that works for carousels that have a definite "left & right side" or "top & bottom" (track which side the mouse is clicked on, then call the NavigateToNext/PreviousItem the required number of times) but of course it would break with custom paths that move around a lot and it also doesn't scroll very nicely (if you call it twice, you only see the second scroll).

 Any thoughts?  I think the problem might be with the SetVerticalOffset method call, but I can't find anything helpful on the net about alternatives.

 I think there should be a better way since the navigator "next page" and "next item" button presses scroll the list very nicely.. they just don't change the selected item when they scroll... and what I want is the user to be able to "select" an item in view and have it scroll to the center as well.