4 implementations of ItemCount
Microsoft.Maui.Controls (4)
Handlers\Items\iOS\EmptySource.cs (1)
11
public int
ItemCount
=> 0;
Handlers\Items\iOS\ListSource.cs (1)
61
public int
ItemCount
=> _itemsSource.Count;
Handlers\Items\iOS\ObservableGroupedSource.cs (1)
45
public int
ItemCount
Handlers\Items\iOS\ObservableItemsSource.cs (1)
92
public int
ItemCount
=> Count;
27 references to ItemCount
Microsoft.Maui.Controls (27)
Handlers\Items\iOS\CarouselViewController.cs (8)
316
var count = ItemsSource.
ItemCount
;
472
if (ItemsSource.
ItemCount
== 0)
492
if (carousel.CurrentItem == null || ItemsSource == null || ItemsSource.
ItemCount
== 0)
516
var itemsCount = ItemsSource?.
ItemCount
;
540
var itemsCount = ItemsSource?.
ItemCount
;
573
if (ItemsSource is null || ItemsSource.
ItemCount
== 0)
754
var itemSourceCount = _itemsSource.
ItemCount
;
887
int GetItemsSourceCount() => _itemsSource.
ItemCount
;
Handlers\Items\iOS\ItemsViewController.cs (3)
135
_isEmpty = ItemsSource.
ItemCount
== 0;
498
if (ItemsSource == null || ItemsSource.
ItemCount
== 0)
609
UpdateEmptyViewVisibility(ItemsSource?.
ItemCount
== 0);
Handlers\Items\iOS\ItemsViewDelegator.cs (2)
66
if (lastVisibleItemIndex == source.
ItemCount
- 1)
70
if (source.
ItemCount
- 1 - lastVisibleItemIndex <= itemsView.RemainingItemsThreshold)
Handlers\Items2\CarouselViewHandler2.iOS.cs (1)
104
if (Math.Abs(page % 1) > (double.Epsilon * 100) || Controller.ItemsSource.
ItemCount
<= 0)
Handlers\Items2\iOS\CarouselViewController2.cs (9)
226
var count = ItemsSource.
ItemCount
;
374
if (ItemsSource is null || ItemsSource.
ItemCount
== 0)
395
if (ItemsSource is null || ItemsSource.
ItemCount
== 0)
417
if (ItemsSource is null || ItemsSource.
ItemCount
== 0)
437
if (carousel.CurrentItem is null || ItemsSource is null || ItemsSource.
ItemCount
== 0)
461
if (ItemsSource is null || ItemsSource.
ItemCount
== 0)
524
if (ItemsSource is null || ItemsSource.
ItemCount
== 0)
663
return Math.Max(0, _itemsSource.
ItemCount
- 1);
665
else if (indexPath.Row == _itemsSource.
ItemCount
+ 1)
Handlers\Items2\iOS\ItemsViewController2.cs (2)
138
_isEmpty = ItemsSource.
ItemCount
== 0;
429
UpdateEmptyViewVisibility(ItemsSource?.
ItemCount
== 0);
Handlers\Items2\iOS\ItemsViewDelegator2.cs (2)
67
if (lastVisibleItemIndex == source.
ItemCount
- 1)
71
if (source.
ItemCount
- 1 - lastVisibleItemIndex <= itemsView.RemainingItemsThreshold)