public override void UpdateItemsSource() { UnsubscribeCollectionItemsSourceChanged(ItemsSource); base.UpdateItemsSource(); //we don't need to Subscribe because base calls CreateItemsViewSource _carouselViewLoopManager?.SetItemsSource(LoopItemsSource); _initialPositionSet = false; UpdateInitialPosition(); }
public override void UpdateItemsSource() { UnsubscribeCollectionItemsSourceChanged(ItemsSource); base.UpdateItemsSource(); //we don't need to Subscribe because base calls CreateItemsViewSource _carouselViewLoopManager?.SetItemsSource(LoopItemsSource); if (_initialPositionSet) { Carousel.SetValueFromRenderer(CarouselView.CurrentItemProperty, null); Carousel.SetValueFromRenderer(CarouselView.PositionProperty, 0); } _initialPositionSet = false; UpdateInitialPosition(); }