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.
Unfortunately, activation email could not send to your email. Please try again.

Carousel SelectedItem Type

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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;
                }
                else
                {
                    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 08:20 AM

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 12.3.0.36. 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.

 

Thanks,

Mariappan S.

 


Attachment: CarouselSample_f15461c0.zip

CONFIRMATION

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.

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.

;