Carousel view with vertical item?

Bala 21 Reputation points
2021-03-10T09:10:48.297+00:00

Does anyone have idea about how to display the item vertically in carousel view in xamarin forms?Normally we can swipe the item horizontally.

Is there any attribute available please let me know

Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,377 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,546 Reputation points Microsoft Vendor
    2021-03-10T09:33:54.61+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    You can try to use LinearItemsLayout set the Orientation to Vertical

       <CarouselView ItemsSource="{Binding Monkeys}">  
           <CarouselView.ItemsLayout>  
               <LinearItemsLayout Orientation="Vertical" />  
           </CarouselView.ItemsLayout>  
    

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Junaid Pathan 96 Reputation points
    2025-02-04T03:27:08.8533333+00:00

    Use

    <CarouselView ItemsSource="{Binding Monkeys}" ItemsLayout="VerticalList">
        ...
    </CarouselView>
    

    Dont use LinearItemsLayout as shown in accepted answer. It will make your CarouselView as a CollectionView/ListView. You will not have those bouncy animations like CarouselView which scrolls items one by one, it will scroll continously like CollectionView. Use ItemsLayout="VerticalList" in CarouselView tag itself as I showed. I wasted more than 6 hours because of accepted answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.