24 references to IndexOf
Microsoft.Maui (2)
Extensions\ArrayExtensions.cs (1)
38
return self.RemoveAt(self.
IndexOf
(item));
VisualDiagnostics\VisualDiagnostics.cs (1)
50
var index = parent?.GetVisualChildren().
IndexOf
(child) ?? -1;
Microsoft.Maui.Controls (18)
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (1)
622
ViewControllers = ViewControllers.Insert(ViewControllers.
IndexOf
(target), pageContainer);
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
359
InsertViewController(ActiveViewControllers().
IndexOf
(beforeRenderer.ViewController), renderer.ViewController);
Element\Element.cs (2)
1094
bool ICollection<Element>.Contains(Element item) => _inner.
IndexOf
(item) != -1;
1102
int IList<Element>.IndexOf(Element item) => _inner.
IndexOf
(item);
Handlers\Items\iOS\ItemsViewController.cs (2)
682
if (((IElementController)ItemsView).LogicalChildren.
IndexOf
(_emptyViewFormsElement) == -1)
727
if (_emptyViewFormsElement != null && ((IElementController)ItemsView).LogicalChildren.
IndexOf
(_emptyViewFormsElement) != -1)
Handlers\Items\iOS\ItemsViewLayout.cs (1)
383
var currentIndex = visibleElements.
IndexOf
(currentItem);
Handlers\Items2\iOS\ItemsViewController2.cs (2)
427
if (((IElementController)ItemsView).LogicalChildren.
IndexOf
(_emptyViewFormsElement) == -1)
472
if (_emptyViewFormsElement != null && ((IElementController)ItemsView).LogicalChildren.
IndexOf
(_emptyViewFormsElement) != -1)
Handlers\Items2\iOS\LayoutFactory2.cs (1)
351
var currentIndex = visibleElements.
IndexOf
(currentItem);
IndicatorView\IndicatorStackLayout.cs (1)
25
Command = new Command(sender => _indicatorView.Position = Children.
IndexOf
(sender)),
OrderedDictionary.cs (1)
432
return _odict._dict.Values.
IndexOf
(item);
Picker\Picker.cs (1)
387
SetValue(SelectedIndexProperty, Items.
IndexOf
(selectedItem), SetterSpecificity.FromHandler);
ReadOnlyListAdapter.cs (1)
68
return _list.
IndexOf
(value);
TemplatedItemsList.cs (3)
293
return _groupedItems.Values.
IndexOf
(til);
368
int groupIndex = _groupedItems.Values.
IndexOf
(group);
1318
int index = _itemsList._groupedItems.Values.
IndexOf
(list);
Visuals\VisualTypeConverter.cs (1)
188
return _visualTypeMappings.Keys.Skip(_visualTypeMappings.Values.
IndexOf
(visual)).First();
Microsoft.Maui.Controls.Compatibility (4)
iOS\CollectionView\ItemsViewController.cs (2)
515
if (((IElementController)ItemsView).LogicalChildren.
IndexOf
(_emptyViewFormsElement) == -1)
560
if (_emptyViewFormsElement != null && ((IElementController)ItemsView).LogicalChildren.
IndexOf
(_emptyViewFormsElement) != -1)
iOS\CollectionView\ItemsViewLayout.cs (1)
345
var currentIndex = visibleElements.
IndexOf
(currentItem);
iOS\Renderers\NavigationRenderer.cs (1)
577
ViewControllers = ViewControllers.Insert(ViewControllers.
IndexOf
(target), pageContainer);