1 write to Carousel
Microsoft.Maui.Controls.Compatibility (1)
iOS\CollectionView\CarouselViewController.cs (1)
27 Carousel = itemsView;
47 references to Carousel
Microsoft.Maui.Controls.Compatibility (47)
iOS\CollectionView\CarouselViewController.cs (47)
30 Carousel.PropertyChanged += CarouselViewPropertyChanged; 31 Carousel.Scrolled += CarouselViewScrolled; 39 if (Carousel?.Loop == true && _carouselViewLoopManager != null) 82 if (Carousel?.Loop == true && _carouselViewLoopManager != null) 103 Carousel.ScrollTo(Carousel.Position, position: Microsoft.Maui.Controls.ScrollToPosition.Center, animate: false); 109 Carousel.SetIsDragging(true); 114 Carousel.SetIsDragging(false); 127 Carousel.SetValueFromRenderer(CarouselView.CurrentItemProperty, null); 128 Carousel.SetValueFromRenderer(CarouselView.PositionProperty, 0); 135 protected override bool IsHorizontal => (Carousel?.ItemsLayout)?.Orientation == ItemsLayoutOrientation.Horizontal; 141 if (Carousel.ItemTemplate != null) 155 var itemsSource = ItemsSourceFactory.CreateForCarouselView(Carousel.ItemsSource, this, Carousel.Loop); 169 Carousel.PropertyChanged -= CarouselViewPropertyChanged; 170 Carousel.Scrolled -= CarouselViewScrolled; 176 internal void UpdateIsScrolling(bool isScrolling) => Carousel.IsScrolling = isScrolling; 180 if (Carousel?.Loop == true && _carouselViewLoopManager != null) 188 if (Carousel?.Loop == true && _carouselViewLoopManager != null) 213 int carouselPosition = Carousel.Position; 215 var currentItemPosition = ItemsSource.GetIndexForItem(Carousel.CurrentItem).Row; 253 Carousel.SetValueFromRenderer(CarouselView.CurrentItemProperty, null); 264 bool removingCurrentElementAndLast = removingCurrentElement && removingLastElement && Carousel.Position > 0; 268 carouselPosition = Carousel.Position - 1; 309 var carouselPosition = Carousel.Position; 312 LoopItemsSource.Loop = Carousel.Loop; 321 if (Carousel.Loop) 326 if (Carousel.IsDragging || carouselPosition == -1) 332 Carousel.ScrollTo(goToPosition, position: Microsoft.Maui.Controls.ScrollToPosition.Center, animate: animate); 346 if (_gotoPosition == -1 && Carousel.Position != position) 347 Carousel.SetValueFromRenderer(CarouselView.PositionProperty, position); 357 Carousel.SetValueFromRenderer(CarouselView.CurrentItemProperty, item); 363 if (Carousel?.CurrentItem == null || ItemsSource == null || ItemsSource.ItemCount == 0) 366 var currentItemPosition = GetIndexForItem(Carousel.CurrentItem).Row; 368 ScrollToPosition(currentItemPosition, Carousel.Position, Carousel.AnimateCurrentItemChanges); 379 var currentItemPosition = GetIndexForItem(Carousel.CurrentItem).Row; 380 var carouselPosition = Carousel.Position; 384 ScrollToPosition(carouselPosition, currentItemPosition, Carousel.AnimatePositionChanges); 400 int position = Carousel.Position; 401 var currentItem = Carousel.CurrentItem; 411 Carousel.ScrollTo(position, -1, Microsoft.Maui.Controls.ScrollToPosition.Center, false); 423 var carouselPosition = Carousel.Position; 454 if (!Carousel.VisibleViews.Contains(itemView)) 456 Carousel.VisibleViews.Add(itemView); 465 if (Carousel.VisibleViews.Contains(itemView)) 467 Carousel.VisibleViews.Remove(itemView);