Event when "popout" element in Carousel is clicked

Mar 30, 2010 at 9:42 AM

Hi everyone,

I am quite new to work with this fantastic framework.

I have a problem, and I hope you can help me to solve it.

I have an "EventFlow Carousel" with some cards/items. When an item is selected the SelectedIndexChanged event is executed, and the selected item is brought to the front.

Is it possible to execute another event or somehow register if there is clicked on the selected item (the front item) again?

Thanks in advance for your help.


Mar 30, 2010 at 1:37 PM

Hi Daniel,

             As of today, the Selection event is only fired for indicating change in selection. If you feel a little adventurous, you can dig in and add a check to see if the selection is invoked on an already selected item. In that case, you can fire an additional event. The ElementFlow code is not too complex and you should be able to figure it out pretty quickly :)




Apr 8, 2010 at 8:37 AM

Hi Pavan,

Thank you for your quick answer.

Today I finally had some time to look at it, and I got it fixed.

Thank you for your time.

- Daniel

Jun 21, 2010 at 12:28 PM

Hi DanielJorgensen,

Could you explain how do you add an event click on a selected items.



Jun 25, 2010 at 12:10 PM

Hi grogui,

I created an event in the ElementFlow-class:

public event EventHandler PopoutItemIsSelected;

In the SelectedIndex-property I added the following if-statement before SetValue(SelectedIndexProperty, value); :

if (SelectedIndex == value)

{ this.PopoutItemIsSelected(this, new EventArgs()); } 


Best reagards,