Animation in .NET MAUI Carousel View (SfCarousel)

4 May 20251 minute to read

The Duration property of the SfCarousel control specifies the time taken to move an item to the selected item position in the Default mode. The duration is specified in milliseconds. The default value is 600 ms.

<carousel:SfCarousel x:Name="carousel"
                     ItemsSource="{Binding ImageCollection}"
                     ItemTemplate="{StaticResource itemTemplate}" 
                     Duration="1000"/>
SfCarousel carousel = new SfCarousel();
carousel.SetBinding(SfCarousel.ItemsSourceProperty, "ImageCollection");
carousel.ItemTemplate = itemTemplate;
carousel.Duration = 1000;