28 references to IndexFromContainer
PresentationFramework (16)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
65
int row = listview.ItemContainerGenerator.
IndexFromContainer
(lvi);
System\Windows\Controls\DataGrid.cs (2)
2154
newItemIndex = ItemContainerGenerator.
IndexFromContainer
(cell.RowOwner);
3099
(currentIndex < 0 || currentIndex == ItemContainerGenerator.
IndexFromContainer
(row))
System\Windows\Controls\DataGridCell.cs (1)
86
PrepareCell(item, ownerRow, cellsPresenter.ItemContainerGenerator.
IndexFromContainer
(this));
System\Windows\Controls\DataGridRow.cs (1)
1319
return dataGridOwner.ItemContainerGenerator.
IndexFromContainer
(this);
System\Windows\Controls\ItemsControl.cs (2)
3588
return NewItemInfo(ItemContainerGenerator.ItemFromContainer(container), container, ItemContainerGenerator.
IndexFromContainer
(container));
3941
Index = generator.
IndexFromContainer
(Container);
System\Windows\Controls\ListBox.cs (1)
948
return ItemContainerGenerator.
IndexFromContainer
(listItem);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
270
int index = ItemContainerGenerator.
IndexFromContainer
(container);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
694
int index = dataGrid.ItemContainerGenerator.
IndexFromContainer
(row);
System\Windows\Controls\TabControl.cs (1)
429
startIndex = ItemContainerGenerator.
IndexFromContainer
(ItemContainerGenerator.ContainerFromItem(SelectedItem));
System\Windows\Controls\VirtualizingStackPanel.cs (5)
6330
generator.
IndexFromContainer
(generator.ContainerFromItem(item)),
6361
generator.
IndexFromContainer
(generator.ContainerFromItem(item)),
7718
generator.
IndexFromContainer
(child), childSize);
7729
generator.
IndexFromContainer
(child), childSize, childPixelSize);
9226
int dataIndex = generator.
IndexFromContainer
(child);
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (3)
791
int index = _tabHeaderItemsControl.ItemContainerGenerator.
IndexFromContainer
(tabHeader);
2005
return tab.ItemContainerGenerator.
IndexFromContainer
(ribbonGroup);
2079
return quickAccessToolBar.ItemContainerGenerator.
IndexFromContainer
(ribbonControl);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1066
int index = ItemContainerGenerator.
IndexFromContainer
(element);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
783
int startCatIndex = gallery.ItemContainerGenerator.
IndexFromContainer
(category);
814
startItemIndex = galleryItem != null ? category.ItemContainerGenerator.
IndexFromContainer
(galleryItem) : category.Items.Count - 1;
843
startItemIndex = galleryItem != null ? category.ItemContainerGenerator.
IndexFromContainer
(galleryItem) : 0;
2494
int itemIndex = parentItemsControl.ItemContainerGenerator.
IndexFromContainer
(menuItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
790
int focusedIndex = ItemContainerGenerator.
IndexFromContainer
(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
833
int focusedIndex = ItemContainerGenerator.
IndexFromContainer
(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
187
int index = ribbon.ItemContainerGenerator.
IndexFromContainer
(this);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
129
int index = tabHeaderItemsControl.ItemContainerGenerator.
IndexFromContainer
(this);