A Carousel View for ElementFlow

The Carousel view has become a pretty popular visualization for a list of items. It consists of a set of items arranged circularly with the selected item brought to the front, just the like the figure below:

image

In a recent discussion on the WPF Disciples Group, I got a little motivated to experiment with this view for ElementFlow. After frying a few of my grey cells I finally got something that looked like a carousel.

Here is a quick video that shows this in action.

 

 

This is not yet perfect

The behavior of this view becomes a little hard to understand when you select an item at the back. The selected item doesn’t rotate into the focused position but rather does a translation. The desired behavior should be like the green marking in the figure below:

 

image

 

To achieve that I need to make some structural changes to the way the animations are created for the Views. Right now there is a common animation that is used for all the views. What we need is a way for the view to specify its desired animation (Storyboard). Most views will use a default Storyboard from ViewStateBase but special cases like the Carousel view will furnish its own Storyboard. I am going to think through this a little bit more and post an update later.

Similar Posts:

16 responses to “A Carousel View for ElementFlow”

  1. Josh Smith

    Well done, sir.

  2. wekempf

    Simply amazing! :)

  3. Marlon Grech

    very well done…..

  4. Roland Rodriguez

    This is gorgeous Pavan. Is the code available?

    -r

  5. Grant

    Boring. j/k — looks great!

  6. Jonathan Dickinson

    How about a ‘skip’ feature. If you have ever used an IPod Touch you would know what I mean. In the case of a couple of thousand plus items you wouldn’t really want to show them all, maybe 5 or so element around the current one, allowing the user to navigate.

  7. MisticRain

    Simply great man!!

  8. Ernesto Herrera

    Hi Pavan, I’m revising the elementflow implementation, but I really would like the carousel version, do you have some source code updates about this?

    Regards

  9. Marco

    Hi Pavan! Really a good job! ;)
    One question, I’ve downloaded the source code.
    I’ve tried to enable the reflection of the ElementFlow in the showcase program, I’ve changed the itemtemplate in TestDataTemplate_Reflection and enabled the property HasReflection… but there is still no reflection and a weird appearance of the elements. Do You know what I’m doing wrong?

    Many Thanks, Marco

  10. digitalpbk

    Wow thank you

  11. Ecommerce

    Thankyou thats great!

  12. ricardo fig

    hi Pavan

    I can not find the source code for the carousel, can you send me a link?

    thanks and great work!

Leave a Reply