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