31 references to IndicatorView
Microsoft.Maui.Controls (31)
Hosting\AppHostBuilderExtensions.cs (1)
105 handlersCollection.AddHandler<IndicatorView, IndicatorViewHandler>();
IndicatorView\IndicatorStackLayout.cs (10)
9 readonly IndicatorView _indicatorView; 10 public IndicatorStackLayout(IndicatorView indicatorView) 34 if (e.PropertyName == IndicatorView.IndicatorsShapeProperty.PropertyName 35 || e.PropertyName == IndicatorView.IndicatorTemplateProperty.PropertyName) 39 if (e.PropertyName == IndicatorView.MaximumVisibleProperty.PropertyName 40 || e.PropertyName == IndicatorView.PositionProperty.PropertyName 41 || e.PropertyName == IndicatorView.HideSingleProperty.PropertyName 42 || e.PropertyName == IndicatorView.IndicatorColorProperty.PropertyName 43 || e.PropertyName == IndicatorView.SelectedIndicatorColorProperty.PropertyName 44 || e.PropertyName == IndicatorView.IndicatorSizeProperty.PropertyName)
IndicatorView\IndicatorView.cs (16)
18 public static readonly BindableProperty IndicatorsShapeProperty = BindableProperty.Create(nameof(IndicatorsShape), typeof(IndicatorShape), typeof(IndicatorView), Controls.IndicatorShape.Circle); 21 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(int), typeof(IndicatorView), default(int), BindingMode.TwoWay); 24 public static readonly BindableProperty CountProperty = BindableProperty.Create(nameof(Count), typeof(int), typeof(IndicatorView), default(int), propertyChanged: (bindable, oldValue, newValue) 25 => (((IndicatorView)bindable).IndicatorLayout as IndicatorStackLayout)?.ResetIndicatorCount((int)oldValue)); 28 public static readonly BindableProperty MaximumVisibleProperty = BindableProperty.Create(nameof(MaximumVisible), typeof(int), typeof(IndicatorView), int.MaxValue, propertyChanged: (bindable, oldValue, newValue) 29 => (((IndicatorView)bindable).IndicatorLayout as IndicatorStackLayout)?.ResetIndicators()); 32 public static readonly BindableProperty IndicatorTemplateProperty = BindableProperty.Create(nameof(IndicatorTemplate), typeof(DataTemplate), typeof(IndicatorView), default(DataTemplate), propertyChanging: (bindable, oldValue, newValue) 33 => UpdateIndicatorLayout((IndicatorView)bindable, newValue)); 36 public static readonly BindableProperty HideSingleProperty = BindableProperty.Create(nameof(HideSingle), typeof(bool), typeof(IndicatorView), true); 39 public static readonly BindableProperty IndicatorColorProperty = BindableProperty.Create(nameof(IndicatorColor), typeof(Color), typeof(IndicatorView), Colors.LightGrey); 42 public static readonly BindableProperty SelectedIndicatorColorProperty = BindableProperty.Create(nameof(SelectedIndicatorColor), typeof(Color), typeof(IndicatorView), Colors.Black); 45 public static readonly BindableProperty IndicatorSizeProperty = BindableProperty.Create(nameof(IndicatorSize), typeof(double), typeof(IndicatorView), 6.0); 48 public static readonly BindableProperty ItemsSourceProperty = BindableProperty.Create(nameof(ItemsSource), typeof(IEnumerable), typeof(IndicatorView), null, propertyChanged: (bindable, oldValue, newValue) 49 => ((IndicatorView)bindable).ResetItemsSource((IEnumerable)oldValue)); 51 static readonly BindableProperty IndicatorLayoutProperty = BindableProperty.Create(nameof(IndicatorLayout), typeof(IBindableLayout), typeof(IndicatorView), null, propertyChanged: TemplateUtilities.OnContentChanged); 144 static void UpdateIndicatorLayout(IndicatorView indicatorView, object newValue)
Items\CarouselView.cs (4)
202 public IndicatorView IndicatorView 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);