Animation in .NET MAUI Carousel View (SfCarousel)

19 Dec 20231 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}"
                     Duration="1000"/>
SfCarousel carousel = new SfCarousel();
carousel.SetBinding(SfCarousel.ItemsSourceProperty, "ImageCollection");
carousel.Duration = 1000;