Hi,
What events could I use to capture mouse clicks on the CarouselPanel items, and how could I identify which item was clicked / dragged etc... ?
I would like to enable some simple interactions on the CarouselPanel, like double click on an item , drag an item.
Thanks
Gabor Kis
Hi, I am new in WPF.
Could you give a demo about the four events?
Thank you!
Settings the eventhandler in the style works great, thanks.
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
If this is what you were looking for please verify the answer so it helps other users as well.
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support
What you can do register for the CarouselPanelItems event is create a Style like this one:
<Style TargetType="{x:Type igWindows:CarouselPanelItem}">
<EventSetter Event="MouseLeftButtonDown" Handler="CarouselPanelItem_MouseLeftButtonDown" />
<EventSetter Event="MouseDoubleClick" Handler="CarouselPanelItem_MouseDoubleClick" />
<EventSetter Event="Selected" Handler="CarouselPanelItem_Selected" />
</Style>
And their corresponding event handler in code:
void CarouselPanelItem_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{ … }
void CarouselPanelItem_Selected(object sender, RoutedEventArgs e)
void CarouselPanelItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
I have the problem too.
Is there any solution?
Thank you
xujd