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.

How to get details of a selected item?

You can get the properties of SelectedItem by casting the sender to SfCarousel in the SelectionChanged or ItemTapped event.

SelectedIndex property

You can get the index of the SelectedItem by using the SelectedIndex property.

SelectedItem property

The SelectedItem property stores the value of the current item that has been selected as an object.

MainWindow.Xaml

The above code selects the third item on load as displayed in the following screenshot.

Figure 1: SelectedItem

SelectionChanged event

You can get the details of the SelectedItem, by casting the sender as SfCarousel. The following code displays how to get the item’s properties.

MainPage.xaml

CarousalProperties.cs

MainPage.xaml.cs

The following screenshot displays the information after tapping on the second item.

Figure 2: SelectionChanged

 

Article ID: Published Date: Last Revised Date: Platform: Control: Product Version:
2685 11/17/2014 11/17/2014 WinRT SfCarousel 12.1.0.43
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.