Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How add CarouselPage into ListView?

$
0
0

How add CarouselPage into ListView? Do anybody have example?
I try do it :

<ListView ItemsSource="{Binding GroupItems}">
     <ListView.ItemTemplate>
       <DataTemplate>
         <ViewCell>
             <CarouselPage ItemsSource="{Binding Items}" Title="Image">
                   <ContentPage>
                     <StackLayout>
                        <Image Source="icon.png" />
                     </StackLayout>
                   </ContentPage>
                   <ContentPage>
                     <StackLayout>
                        <Image Source="icon.png" />
                     </StackLayout>
                   </ContentPage>
                   <ContentPage>
                     <StackLayout>
                        <Image Source="icon.png" />
                     </StackLayout>
                   </ContentPage>
                   <ContentPage>
                     <StackLayout>
                        <Image Source="icon.png" />
                     </StackLayout>
                   </ContentPage>
             </CarouselPage>
         </ViewCell>
       </DataTemplate>
     </ListView.ItemTemplate>
   </ListView>

and result is crash :(


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>