Ejemplo n.º 1
0
        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(); });
        }
Ejemplo n.º 2
0
 public CarouselViewRenderer(Context context) : base(context)
 {
     FormsCollectionView.VerifyCollectionViewFlagEnabled(nameof(CarouselViewRenderer));
 }