Base:
method
IndexOf
System.Windows.Data.CollectionView.IndexOf(System.Object)
Implemented interface member:
method
IndexOf
System.Collections.IList.IndexOf(System.Object)
26 references to IndexOf
PresentationFramework (21)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
523return this.OwningDataGrid.Items.IndexOf(this.Item);
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
377int rowIndex = dataGrid.Items.IndexOf(Item);
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
61int row = listview.Items.IndexOf(item);
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
304position = itemCollection.IndexOf(item); 322int position = itemCollection.IndexOf(item);
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (4)
286startIndex = items.IndexOf(startAfterItem.Item)+ 1; 297if (items.IndexOf(items[i]) != i) 322if (currentValue == null && value == null && items.IndexOf(items[i]) == i) 329if (value.Equals(currentValue) && items.IndexOf(items[i]) == i)
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1118index = Items.IndexOf(info.Item);
src\Framework\System\Windows\Controls\DataGrid.cs (4)
2755info = ItemInfoFromIndex(Items.IndexOf(newItem)); 3684newItemIndex = Items.IndexOf(currentAddItem); 6002index = Items.IndexOf(CurrentItem); 8400rowIndex = Items.IndexOf(args.Item);
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
2585elementIndex = Items.IndexOf(item); 3742info.Index = Items.IndexOf(info.Item);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
607index = Items.IndexOf(value); 2204index = Items.IndexOf(_selectedItems[0].Item);
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1188int rowIndex = _owner.Items.IndexOf(rows[i]); 1421int rowIndex = _owner.Items.IndexOf(rows[i]); 1578rowIndex = _owner.Items.IndexOf(cell.Item);
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (3)
205DataGridCell currentCellContainer = GetCell(dataGrid, items.IndexOf(currentCell.Item), currentColumnIndex); 210int index = Math.Max(0, Math.Min(numItems - 1, items.IndexOf(currentCell.Item) + (shiftModifier ? -1 : 1))); 1153nextSelectedIndex = dataGrid.Items.IndexOf(toBeDeleted.ElementAt(0));
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
565int index = this.ContextMenu.Items.IndexOf(separator);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
490return GetSpacerIndex(this.panel.Items.IndexOf(sender));