Example #1
0
        protected override IItemsViewSource CreateItemsViewSource()
        {
            var itemsSource = ItemsSourceFactory.CreateForCarouselView(Carousel.ItemsSource, this, Carousel.Loop);

            _carouselViewLoopManager?.SetItemsSource(itemsSource);
            SubscribeCollectionItemsSourceChanged(itemsSource);
            return(itemsSource);
        }
Example #2
0
        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());
        }
Example #3
0
 protected virtual IItemsViewSource CreateItemsViewSource()
 {
     return(ItemsSourceFactory.Create(ItemsView.ItemsSource, this));
 }