Linear Arrangement in .NET MAUI Carousel View (SfCarousel)

19 Dec 20231 minute to read

The Carousel items can be populated in the view in a stacked linear layout by setting the ViewMode property to Linear. The present option is Default.

<carousel:SfCarousel x:Name="carousel"  
                     ItemsSource="{Binding ImageCollection}" 
                     ViewMode="Linear"/>
SfCarousel carousel = new SfCarousel();
carousel.SetBinding(SfCarousel.ItemsSourceProperty, "ImageCollection");
carousel.ViewMode = ViewMode.Linear;

Linear mode