Horizontal ListView Xamarin.Forms

Luigi Saggese picture Luigi Saggese · Jun 20, 2014 · Viewed 47.3k times · Source

Is any way to create ListView with horizontal scroll in Xamarin.Forms like image

ListView Horizontal

this is what i have done for vertical

var myListView = new ListView
{
    ItemTemplate = new DataTemplate(typeof(ImageCell))
};

Answer

Korayem picture Korayem · May 16, 2016

As of Xamarin Forms 2.3 CarouselView does just that, and more. Read more here.

<ContentView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
  <CarouselView ItemsSource="{Binding MyDataSource}">
    <CarouselView.ItemTemplate>
      <DataTemplate>
        <Label Text="{Binding LabelText}" />
      </DataTemplate>
    </CarouselView.ItemTemplate>
  </CarouselView>
</ContentView>