15 references to IndexFromContainer
PresentationFramework (15)
src\Framework\System\Windows\Controls\DataGrid.cs (2)
2158
newItemIndex = ItemContainerGenerator.
IndexFromContainer
(cell.RowOwner);
3104
(currentIndex < 0 || currentIndex == ItemContainerGenerator.
IndexFromContainer
(row))
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
81
PrepareCell(item, ownerRow, cellsPresenter.ItemContainerGenerator.
IndexFromContainer
(this));
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
1320
return dataGridOwner.ItemContainerGenerator.
IndexFromContainer
(this);
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
3519
return NewItemInfo(ItemContainerGenerator.ItemFromContainer(container), container, ItemContainerGenerator.
IndexFromContainer
(container));
3873
Index = generator.
IndexFromContainer
(Container);
src\Framework\System\Windows\Controls\ListBox.cs (1)
905
return ItemContainerGenerator.
IndexFromContainer
(listItem);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
270
int index = ItemContainerGenerator.
IndexFromContainer
(container);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
695
int index = dataGrid.ItemContainerGenerator.
IndexFromContainer
(row);
src\Framework\System\Windows\Controls\TabControl.cs (1)
430
startIndex = ItemContainerGenerator.
IndexFromContainer
(ItemContainerGenerator.ContainerFromItem(SelectedItem));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (5)
6192
generator.
IndexFromContainer
(generator.ContainerFromItem(item)),
6223
generator.
IndexFromContainer
(generator.ContainerFromItem(item)),
7578
generator.
IndexFromContainer
(child), childSize);
7589
generator.
IndexFromContainer
(child), childSize, childPixelSize);
9069
int dataIndex = generator.
IndexFromContainer
(child);