34 references to CarouselView
Microsoft.Maui.Controls (34)
Handlers\Items\CarouselViewHandler.cs (6)
15 public static PropertyMapper<CarouselView, CarouselViewHandler> Mapper = new(ItemsViewMapper) 20 [Controls.CarouselView.IsSwipeEnabledProperty.PropertyName] = MapIsSwipeEnabled, 21 [Controls.CarouselView.PeekAreaInsetsProperty.PropertyName] = MapPeekAreaInsets, 22 [Controls.CarouselView.IsBounceEnabledProperty.PropertyName] = MapIsBounceEnabled, 23 [Controls.CarouselView.PositionProperty.PropertyName] = MapPosition, 24 [Controls.CarouselView.CurrentItemProperty.PropertyName] = MapCurrentItem
Handlers\Items\CarouselViewHandler.Standard.cs (7)
6 public partial class CarouselViewHandler : ItemsViewHandler<CarouselView> 13 public static void MapCurrentItem(CarouselViewHandler handler, CarouselView carouselView) { } 14 public static void MapPosition(CarouselViewHandler handler, CarouselView carouselView) { } 15 public static void MapIsBounceEnabled(CarouselViewHandler handler, CarouselView carouselView) { } 16 public static void MapIsSwipeEnabled(CarouselViewHandler handler, CarouselView carouselView) { } 17 public static void MapPeekAreaInsets(CarouselViewHandler handler, CarouselView carouselView) { } 18 public static void MapLoop(CarouselViewHandler handler, CarouselView carouselView) { }
Hosting\AppHostBuilderExtensions.cs (1)
65 handlersCollection.AddHandler<CarouselView, CarouselViewHandler>();
Items\CarouselView.cs (20)
27 public static readonly BindableProperty LoopProperty = BindableProperty.Create(nameof(Loop), typeof(bool), typeof(CarouselView), true, BindingMode.OneTime); 37 public static readonly BindableProperty PeekAreaInsetsProperty = BindableProperty.Create(nameof(PeekAreaInsets), typeof(Thickness), typeof(CarouselView), default(Thickness)); 46 static readonly BindablePropertyKey VisibleViewsPropertyKey = BindableProperty.CreateReadOnly(nameof(VisibleViews), typeof(ObservableCollection<View>), typeof(CarouselView), null, defaultValueCreator: (b) => new ObservableCollection<View>()); 54 static readonly BindablePropertyKey IsDraggingPropertyKey = BindableProperty.CreateReadOnly(nameof(IsDragging), typeof(bool), typeof(CarouselView), false); 64 BindableProperty.Create(nameof(IsBounceEnabled), typeof(bool), typeof(CarouselView), true); 75 BindableProperty.Create(nameof(IsSwipeEnabled), typeof(bool), typeof(CarouselView), true); 86 BindableProperty.Create(nameof(IsScrollAnimated), typeof(bool), typeof(CarouselView), true); 97 BindableProperty.Create(nameof(CurrentItem), typeof(object), typeof(CarouselView), default, BindingMode.TwoWay, 102 BindableProperty.Create(nameof(CurrentItemChangedCommand), typeof(ICommand), typeof(CarouselView)); 106 BindableProperty.Create(nameof(CurrentItemChangedCommandParameter), typeof(object), typeof(CarouselView)); 131 var carouselView = (CarouselView)bindable; 154 BindableProperty.Create(nameof(Position), typeof(int), typeof(CarouselView), default(int), BindingMode.TwoWay, 159 BindableProperty.Create(nameof(PositionChangedCommand), typeof(ICommand), typeof(CarouselView)); 164 typeof(CarouselView)); 207 static void LinkToIndicatorView(CarouselView carouselView, IndicatorView indicatorView) 212 indicatorView.SetBinding(IndicatorView.PositionProperty, static (CarouselView carousel) => carousel.Position, source: carouselView); 213 indicatorView.SetBinding(IndicatorView.ItemsSourceProperty, static (CarouselView carousel) => carousel.ItemsSource, source: carouselView); 243 var carousel = (CarouselView)bindable;