Xamarin Carouselview throws invalidcastexception

fsulserfsulser Member ✭✭
edited April 2019 in Xamarin.Forms

Based on the example I found here: https://blog.xamarin.com/xamarin-forms-4-0-feature-preview-an-entirely-new-point-of-collectionview/

I decided to implement a Carouselview, but it gives me an exception invalidcastexception
I also added global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental"); in my MainActivity for Android.

Any idea what's wrong?

I created a git-repo. You can find it here


  • Sumit_SharmaSumit_Sharma USMember ✭✭✭

    your sample works fine for me

  • JarvanJarvan Member, Xamarin Team Xamurai

    I‘ve tested your demo on Android 8.1. No exception occurred. Maybe the problem is due to IDE.
    My IDE version:

    • NETStandard.Library: 2.0.3
    • Xamarin.Forms:

Sign In or Register to comment.