This is a migrated thread and some comments may be shown as answers.

Display multiple Images on a slideview page

1 Answer 151 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
Nico
Top achievements
Rank 1
Veteran
Iron
Nico asked on 26 Jan 2021, 11:44 AM
Hello!
Is it possible to display multiple content pages on one slidevliew page?
I want to build an image galery where you can see multiple images like AppleĀ“s CoverFlow.

Best regards,
Nico

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Jan 2021, 11:29 AM

Hi Nico,

RadSlideView takes as ItemsSource a collection of data items and through the ItemTemplate you can visualize the data in the way you'd like. 

There is no problem placing more than one images in the template - just the proper bindings of the images sources should be applied.  I have created a simple example where the ItemsSource of the SlideView is bound to a collection of strings as each string is actually the image source path.  The binding context of the ItemTemplate is only the concrete item, still, through binding with Source set to the SlideView instance, you can get access to the whole ItemsSource and take the previous/next image. Keep in mind this does not work completely as Apple CoverFlow as SlideView is a different component its specific design.

Please download the attachment and give it a try. I hope the approach would meet the requirement.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
SlideView
Asked by
Nico
Top achievements
Rank 1
Veteran
Iron
Answers by
Yana
Telerik team
Share this question
or