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
80
XamCarouselListBox SelectedItem Background
posted

Hello,

I'm using an Infragistics XamCarouselListBox in an C# WPF MVVM Application.

I'm trying to create a trigger that changes the background of the selected item, in the moment it gets clicked.

My problem is that I don't really know where to create the trigger (Grid, CarouselListBox Style...) and how to properly catch that the item got clicked.

Afterwards, when it's not selected anymore, it should have its normal color.

The XamCarouselListBox uses a DataTemplate with a Grid and a TextBlock in it.

Thanks.

Achim