CarouselView controls for .NET MAUI migrated from CarouselView.FormsPlugin for Xamarin
- Available on NuGet: CarouselView.Maui
- Add nuget package to your project.
- Add
.UseMauiCarouselView()
to your MauiApp builder.
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseMauiCarouselView()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
return builder.Build();
}
}
- Android
- iOS
- MacCatalyst (Later)
- Windows (Later)
1.[Android] Vertical CarouselView in VerticalStackLayout can not be swiped.
You can find all descriptions from the original repository CarouselView.FormsPlugin
The MIT License (MIT) see License file
1.Fix ItemPositionTemplate not found when InfiniteScrolling enabled on Android.
1.Add new ItemViewCount & ItemPositionTemplates properties for dynamic item view template selection support. (Demo: CarouselView.Sample/MainPage.xaml )
1.Fix System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Microsoft.Maui.Platform.LayoutView'. crash bug on iOS. 2.Fix System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Microsoft.Maui.Platform.ContentView' crash bug on iOS. 3.Fix CarouselView item auto hiding bug on iOS.
1.Add .NET 9 support.
1.Fix System.NullReferenceException in CarouselViewRenderer.UpdateCurrentPage #6 (Thanks PR by https://github.com/vector-perfect)
1.Fix Android Cannot Access A Disposed Object when use view list as ItemsSource. 2.Fix iOS NullPointerException when use view list as ItemSource.
1.Fix Android Java.Lang.NullPointerException convert crash when targeting to some old version android sdk. (Thanks PR by https://github.com/vitalii-smal)
1.Add .NET 8 support.
1.Fix wrong animation direction when position changed from code behind.
1.Add ItemViews to CarouselViewControl, you can fetch children views of CarouselViewControl now.
1.Fix iOS CarouselView's content can not be fullscreen issue.
1.Fix Android CarouselView's content not showing when app's first startup bug.
1.Init package for Android and iOS platforms.