The Slideshow control provides the ability to display a set of images as a slideshow. It represents a container of SlideshowItem objects, each of which can have a designated image, thumbnail, title and navigate URL.
You can define the individual items displayed by the control by creating SlideshowItem objects and adding them to the control's Items collection, or by using one of the overloads of the AddItem method. Alternatively, a list of image URL-s to read from can be assigned to the ImageSource property.
The control's thumbnails size and position can be customized through the ThumbnailsWidth, ThumbnailsHeight and ThumbnailsPlacement properties. You can choose whether to display navigation buttons and item titles by setting the ShowButtons and TitlePosition properties.
The speed of the slideshow, as well as the speed of images' transition can be adjusted by using the SlideshowSpeed and TransitionSpeed properties.
The following events are exposed by the Slideshow class.
Event | Event arguments | Description |
---|---|---|
EventArgs | Raised when an item's image is clicked. |
You can access the control on the client side by its ClientID.
JavaScript
![]() |
---|
var slideshow = $find("Slideshow1"); |
Use the get_selectedIndex and set_selectedIndex methods to get or set the control's selected item index.
JavaScript
![]() |
---|
slideshow.set_selectedIndex(2); |
Use the start and stop methods to start and stop the slideshow from the client-side.
The following client-side event are exposed by the Slideshow class.
Event | Event arguments | Script property | Description |
---|---|---|---|
Raised when an item's image is clicked. | |||
Raised when a control's selected image index has changed. | |||
- | Raised just after the control has finished loading and is ready for interaction. |