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
245
Problem with SelectedItem on XamCarouselListBox
posted

Hi,

I am binding an ObservableCollection ViewModels to my XamCarouselListBox. I can see my items created - each one using the DataTemplate I have provided.

However, I cannot get the SelectedItem to work. I was hoping to obtain the viewModel in the SelectedItem that is bound to a property on the Parent ViewModel. However, when selecting an item in the Carousel, the SelectedItem template is applied (ie, a grey border around the item) but the ViewModel property (that is bound to the SelectedItem property on the Carousel) does not fire.

This means I am never informed as to which item is currently selected.

I have attached a dummy sample with some dummy objects. Can you please investigate? I'm probably missing something obvious!

Thanks,

Russell

CarouselProblem.zip