protected override IItemsViewSource CreateItemsViewSource() { var itemsSource = ItemsSourceFactory.CreateForCarouselView(Carousel.ItemsSource, this, Carousel.Loop); _carouselViewLoopManager?.SetItemsSource(itemsSource); SubscribeCollectionItemsSourceChanged(itemsSource); return(itemsSource); }
protected override IItemsViewSource CreateItemsViewSource() { // Use the BindableProperty here (instead of _isGroupingEnabled) because the cached value might not be set yet if (ItemsView.IsGrouped) { return(ItemsSourceFactory.CreateGrouped(ItemsView.ItemsSource, this)); } return(base.CreateItemsViewSource()); }
protected virtual IItemsViewSource CreateItemsViewSource() { return(ItemsSourceFactory.Create(ItemsView.ItemsSource, this)); }