We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Carousel SelectedItem Type

Thread ID:





117585 Nov 12,2014 08:53 AM UTC Nov 14,2014 01:20 PM UTC WPF 1
Tags: Carousel
Chong Yee Mei
Asked On November 12, 2014 08:53 AM UTC


We are currently building a Carousel control by displaying file thumbnails and enable load to specific file content by clicking the selected thumbnail.
But unfortunately facing the issue of Carousel selectedItem type, it has different type inconsistently.

Below are the temporary code to handle the different type issue:

if (Carousel.SelectedItem != null)
                File itemSelected = null;

                if (Carousel.SelectedItem.GetType() == typeof(File))
                    itemSelected = (File)Carousel.SelectedItem;
                    itemSelected = (File)((CarouselItem)Carousel.SelectedItem).Content;
We can not figure out the reason of different type needed and causing different type since all the file are same. 
Please advise, thank you.

Mariappan S [Syncfusion]
Replied On November 14, 2014 01:20 PM UTC

Hi Chong,


Thank you for contacting Syncfusion Support.


We have prepared the sample using the provided code snippet, but we are unable to reproduce the reported issue in our latest version Could you please check our attached sample?


If possible could you please provide more information about this issue with replication procedure and also provide us Product Version details which you are currently using , that would be very helpful for us to resolve your problem at earliest.


Please let know if you have any queries.



Mariappan S.


Attachment: CarouselSample_f15461c0.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon