Create Horizontal and Vertical carousels, add page indicators, navigation arrows and much more. “How to” at Github repository.

carouselview, carousel, pageslider, uipageviewcontroller, slider, ios, android, viewpager, monotouch, xamarin, forms, monodroid
Install-Package Spiffy.Plugins.CarouselView -Version 1.0.0


CarouselView control for Xamarin Forms


Platform Support

Platform Supported Version Renderer
Xamarin.iOS Unified Yes iOS 8.1+ UIPageViewController
Xamarin.Android Yes API 15+ ViewPager
UWP Yes 10.0.16299.0 FlipView


In your iOS and Android projects call:


In UWP platform:

List<Assembly> assembliesToInclude = new List<Assembly>();
Xamarin.Forms.Forms.Init(e, assembliesToInclude);


var myCarousel = new CarouselViewControl();
myCarousel.ItemsSource = new ObservableCollection<int> { 1, 2, 3, 4, 5 }; // ADD/REMOVE PAGES FROM CAROUSEL ADDING/REMOVING ELEMENTS FROM THE COLLECTION
myCarousel.ItemTemplate = new MyTemplateSelector (); //new DataTemplate (typeof(MyView));
myCarousel.Position = 0; //default
myCarousel.InterPageSpacing = 10;
myCarousel.Orientation = CarouselViewOrientation.Horizontal;


First add the xmlns namespace:


Then add the xaml:

<controls:CarouselViewControl Orientation="Horizontal" InterPageSpacing="10" Position="{Binding myPosition}" ItemsSource="{Binding myItemsSource}" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
			<local:MyView /> <!-- where MyView is a ContentView -->

Or, you can use a data template selector as StaticResource:

	   <local:MyTemplateSelector x:Key="myTemplateSelector"></local:MyTemplateSelector>

Then the xaml:

<controls:CarouselViewControl Position="0" ItemsSource="{Binding Pages}" ItemTemplate="{StaticResource myTemplateSelector}" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>

Or, template selector in your ViewModel:

<controls:CarouselViewControl Position="{Binding myPosition}" ItemsSource="{Binding myItemsSource}" ItemTemplate="{Binding myTemplateSelector}" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>

Bindable Properties

Orientation: Vertical or Horizontal swipe/scroll (default horizontal).

InterPageSpacing: add a margin/space between pages (Android and iOS only).

IsSwipeEnabled: use this property to disable swipe to scroll (Android and iOS only, default true).

IndicatorsTintColor: page dot indicators fill color (default #C0C0C0).

CurrentPageIndicatorTintColor: selected page dot indicator fill color (default #808080).

IndicatorsShape: Indicators shape (default Circle).

ShowIndicators: hide/show page indicators (default false, set to false when ItemsSource is too long to avoid loading issues in iOS and UWP).

Position: the desired selected view when Carousel starts. Assign this property before assigning ItemsSource at startup.

ItemsSource: IEnumerable. List of objects used as BindingContext of each view.

  • You can use an Observable collection as ItemsSource to dynamically add/remove pages from the carousel.

  • If you want to display different Views for the same data, you can provide a DataTemplate List as ItemsSource:

myCarousel.ItemsSource = new List<DataTemplate>()
	new DataTemplate(() => { return new PhotoUrl(); }),
	new DataTemplate(() => { return new Bio(); }),
	new DataTemplate(() => { return new ContactInfo(); })

myCarousel.BindingContext = new Person()
	PhotoUrl = "https://media.licdn.com/mpr/mpr/shrinknp_400_400/AAEAAQAAAAAAAAefAAAAJDJkNGNiOTU4LWI4ZTQtNDY5My1hZWJhLTE3ZGQ5Y2I1MzRmMQ.jpg",
	Bio = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi.",
	ContactInfo = "alexrainman1975@gmail.com"
  • But also, ItemsSource supports a List of Views, giving you the option to declare the Carousel entirely in XAML:
<cv:CarouselViewControl BindingContext="{Binding Person}">
           <x:Array Type="{x:Type View}">

                <!-- Page1 Display Photo -->
                <Image Source="{Binding PhotoUrl}"/>

                <!-- Page2 Display Bio -->
                <Label FormattedString="{Binding Bio}"/>

                <!-- Page2 Display contact information -->
                <Label FormattedString="{Binding Info}"/>


ItemTemplate: supports DataTemplate and DataTemplateSelector.

  • Change position in code behind or binding to set current page/swipe programmatically.

AnimateTransition: enables transition animation when swiping programmatically (Android and iOS only, default true).

ShowArrows: disable arrows navigation (default true).

ArrowsBackgroundColor: change navigation arrows background color (default black).

ArrowsTintColor: change navigation arrows tint color (default white).

ArrowsTransparency: to change the transparency of the navigation arrows (Android and iOS, default 0.5f).

Event Handlers

PositionSelected: called when position changes (e.NewValue = position selected).

PositionSelectedCommand: a bindable command property to execute when position changes.

Scrolled: called when the carousel is transitioning from one page to another (e.NewValue = scrolling percent completed, e.Direction = scrolling direction (Left, Right, Up, Down)).

Render one page at a time, no swiping, move back and fort programmatically:

myCarousel.ItemsSource = new List<int> { 0 }; // only one item in ItemsSource

To move forward:

public async void OnNext(object sender, TappedEventArgs e)
	if (myCarousel.ItemsSource[0] < 4)
		myCarousel.ItemsSource.Add(myCarousel.ItemsSource[0] + 1);

To move backward:

public async void OnPrev(object sender, TappedEventArgs e)
	if (myCarousel.ItemsSource[0] > 0)
		myCarousel.ItemsSource = new List<int>() { myCarousel.ItemsSource[0] - 1,  myCarousel.ItemsSource[0] };
		await Task.Delay(100);
		myCarousel.AnimateTransition = false;
		myCarousel.Position = 1;
		myCarousel.AnimateTransition = true;


  • When using the control with a long list of items, set ShowIndicators to false in iOS and UWP to avoid loading issues.

  • If you have memory leaks in Android when using the Carousel with images, it's not the control itself. It's Xamarin Android not handling images correctly. To solve the problem you can use FFImageLoading making sure that you set this properties:

DownsampleToViewSize="true" DownsampleWidth="WIDTH"


  • Infinite scrolling
  • Indicators UI position and size
  • Indicators tap event
  • Load more event


Release Notes


[Android] NullReferenceException during swiping bug #314

[Update] Adding scroll direction property to Scrolled event callback


[Update] App crashes with the 5.1.2 version #305

[Update] App crashes on dynamic add to ItemSource collection #301

[Update] Reseting arrows visibility when ItemsSource change


[Update] App crashes on dynamic add to ItemSource collection #301


[Update] Fixing portable library support

[Android] Android CirclePageIndicator.SetStyle not found #300


[Update] Updating to netstandard2.0

[Update] IsSwipingEnabled renamed to IsSwipeEnabled

[Update] Adding Scrolled event callback to report page scrolling percent

[Update] ItemSource update during transition leads to an exception enhancement #294

[Update] Adding ArrowsTransparency property (Android and iOS)

[Android] Moving CirclePageIndicators and VerticalViewPager to separated packages

[Android] Fix for entry focus soft keyboard bug #242

[Android] Out of memories (FFImageLoading + CarouselView) #279


[Android] System.InvalidCastException: Specified cast is not valid. Android #272


[Update] Navigation Arrows doesn't disappear when using swipe #265


[Update] Adding support for netstandard1.4

[Update] Adding PositionSelectedCommand bindable property

[Update] Navigation arrows now supported in Android and iOS

[Android] Fixing ViewRenderer constructor

[Android] ListView scrolls to the top as you swipe right and left on the CarouselView bug #258

[Android] On Property changed not fired when carousel view is inside ViewCell (Listview) #183


[iOS] CarouselViewRenderer.Dispose Null reference Unhandled Exception: #210

[iOS] Exception thrown on Dispose #233

[UWP] Changing Width of Carousel View resets back to first item #230


[Update] Performance improvements


[Update] XF 2.4.0 now supported

[Update] Position Selected can now be declared from XAML

[Android] Does not re-measure its layout on Height Changed #184

[Android] Content bleeds into Indicator position due to height miscalculation #185


[Android] TapGestureRecognizer doesn't work when added to CarouselViewControl #200

[iOS] PositionSelected not called when adding a new item.

[UWP] Adding an Item to the CarouselView Causes Exception when ShowIndicators = False #198

[UWP] Crash on window resize #199

[UWP] Adding back VirtualizationStackPanel as FlipView.ItemsPanelTemplate

[UWP] Overall staibility and improvements.


[Update] Fix #129 CarouselViewControl not rendered when loading a page from memory bug

[Update] Fix #157 CarouselView Binding breaks when returning to Page bug duplicate


[UWP] Windows 10 mobile Entry virtual keybord not pushing up bug #138 (fixed)


[Android] Fixing #136 (Page recreation caused by entry focus)

[iOS] Fixing #158 (Extra DataTemplate instantiations on iOS)

[Update] Adding support for a List of View as ItemsSource (Now the control can be declared entirely in XAML)


[iOS] Finally a fix that works to avoid memory leaks with custom views.


[iOS] Crash due to disposed objects when jumping back and forth #143 (removing version 4.2.6 memory leak fix)


[iOS] Version 4.2.7 - Fast scrolling is causing crash bug #134 (going back to 4.2.6 memory leak fix)

[Update] Significant performance step backwards bug duplicate #141 (fixed, related to page indicators)


[iOS] Significant Memory Leak for iOS when using custom layout for page content #125 (refactored)


[iOS] Significant Memory Leak for iOS when using custom layout for page content #125 (fixed)


[Update] Implementing ItemsSource CollectionChanged Clear, Move and Replace actions.


[Update] Checking for null Element to avoid crashes.


[iOS] iOS crashes sometimes if page is removed while position change has not finished #116 fixed.


[iOS] Rotation bug #115 (fixed)


[Update] Does IsSwipingEnabled only work on Android? #112

[Update] ItemsSource_CollectionChanged() listener never gets removed from INotifyCollectionChanged #113


[Update] InterPageSpacingColor deprecated. Using BackgroundColor instead.


[Update] When a page is inserted in a position minor or equal than current position, keep current page selected updating position.


[iOS] Content not getting rendered in iOS because ElementWidth is 0 (+ fix) #96


[Update] Fixing position property when adding/removing from ItemsSource collection.


[Update] Code refactoring.

[Update] ItemsSource changed to IEnumerable.

[Update] ObservableCollections now supported as ItemsSource.

[Update] InsertPage and RemovePage deprecated (you can add/remove pages using ObservableCollection as ItemsSource).

[Update] PageIndicatorTintColor property renamed to IndicatorsTintColor.

[Update] All bindable property-changed implemented.

[UWP] Arrows property renamed to ShowArrows.


[iOS] Fix for issues after recreating the control #86


[Android] Dynamically Changing Carousel Doesn't Load Threads, duplicates #75 (fixed)

[Android] Call to DataTemplateSelector.OnSelectTemplate happend multiple times on Android #78 (fixed)

[Android] Adding Xamarin.Android.Support.v4 version 24.2.1 dependency (Android 7)


[Update] Adding platform specific dependencies.


[Update] Minor fixes for Position binding.


[Android] NullReference exception. CirclePageIndicator.OnDraw (Fixed)


[Update] Deprecating SetCurrentPage. Change position in code behind or binding to set current page/swipe programmatically.

[New feature] ItemsSource now support a DataTemplate List (see repo for tutorial).

[iOS] Bug fixes and improvements.


[New feature] AnimateTransition property, enables transition animation when swiping programmatically (default true).


[Update] ItemsSource now supports empty or null list.


[Update] IndicatorsStyle property renamed to IndicatorsShape (default Circle).


[New feature] New property named IndicatorsStyle with value equal Rounded or Squared (default Rounded).


[New feature] InterPageSpacingColor property to change the color of the margin/space between pages (default #FFFFFF).


[iOS] Small fix to avoid UIPageViewController.View go outside its container bounds

[Update] PageIndicators property renamed to ShowIndicators

[Update] ShowIndicators property now does what it supposed to do, hide/show indicators :)

[Update] ItemsSourceChanged method removed, implemented at OnElementPropertyChanged


[Android] #40 SetCurrentPage doesn't work for "0" (fixed)

[iOS] #39 Page indicator doesn't work on iOS (fixed)


[iOS] Disabling UIPageControl tap event


[Update] HeighRequest declaration no needed anymore

[Update] CVLabel deprecated

[Update] Horizontal StackLayout is working


[Android] Fixing exception when including ListView in a page

[Update] Adding compatibility for Forms >


[Bug] Fixing exception on ItemsSourceChanged when Element is null.

[Android] Circle page indicators attributes names incompatibility with other libraries (Fixed).


[iOS] Fixing exception when removing last page.


[update] Deprecating PageIndicatorsBackgroundColor.

[Update] Deprecating CV custom controls except for CVLabel.

[bug fix] Crash when calling OnRestoreInstanceState (Android).

[bug fix] NullReferenceException during creation if control is not visible (UWP).

[bug fix] Fix NullReferenceException in PageAdapter.get_Count when ItemSource is null.

[bug fix] Other bug fixes and enhancements.



Licensed under MIT