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

            _carouselViewLoopManager?.SetItemsSource(itemsSource);
            SubscribeCollectionItemsSourceChanged(itemsSource);
            return(itemsSource);
        }
Exemplo n.º 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());
        }
Exemplo n.º 3
0
        void UpdateGroupTracking()
        {
            ClearGroupTracking();

            for (int n = 0; n < _groupSource.Count; n++)
            {
                var source = ItemsSourceFactory.Create(_groupSource[n] as IEnumerable, this);
                source.HasFooter = _hasGroupFooters;
                source.HasHeader = _hasGroupHeaders;
                _groups.Add(source);
            }
        }
Exemplo n.º 4
0
 protected virtual IItemsViewSource CreateItemsViewSource()
 {
     return(ItemsSourceFactory.Create(ItemsView.ItemsSource, this));
 }
Exemplo n.º 5
0
 protected virtual TItemsViewSource CreateItemsSource()
 {
     return((TItemsViewSource)ItemsSourceFactory.Create(ItemsView, this));
 }
Exemplo n.º 6
0
 protected override TItemsViewSource CreateItemsSource()
 {
     return((TItemsViewSource)ItemsSourceFactory.Create(ItemsView, this));
 }