public async Task SnapPointsDoNotCrashOnOlderAPIs() { var cv = new Xamarin.Forms.CollectionView(); var itemsLayout = new LinearItemsLayout(ItemsLayoutOrientation.Vertical) { SnapPointsType = SnapPointsType.Mandatory }; cv.ItemsLayout = itemsLayout; // Creating the renderer is enough to cause the ClassNotFoundException on older APIs await Device.InvokeOnMainThreadAsync(() => { GetRenderer(cv).Dispose(); }); }
public CarouselViewRenderer(Context context) : base(context) { FormsCollectionView.VerifyCollectionViewFlagEnabled(nameof(CarouselViewRenderer)); }