28 references to IndexFromContainer
PresentationFramework (16)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
53
int row = listview.ItemContainerGenerator.
IndexFromContainer
(lvi);
System\Windows\Controls\DataGrid.cs (2)
2151
newItemIndex = ItemContainerGenerator.
IndexFromContainer
(cell.RowOwner);
3096
(currentIndex < 0 || currentIndex == ItemContainerGenerator.
IndexFromContainer
(row))
System\Windows\Controls\DataGridCell.cs (1)
79
PrepareCell(item, ownerRow, cellsPresenter.ItemContainerGenerator.
IndexFromContainer
(this));
System\Windows\Controls\DataGridRow.cs (1)
1315
return dataGridOwner.ItemContainerGenerator.
IndexFromContainer
(this);
System\Windows\Controls\ItemsControl.cs (2)
3579
return NewItemInfo(ItemContainerGenerator.ItemFromContainer(container), container, ItemContainerGenerator.
IndexFromContainer
(container));
3932
Index = generator.
IndexFromContainer
(Container);
System\Windows\Controls\ListBox.cs (1)
942
return ItemContainerGenerator.
IndexFromContainer
(listItem);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
265
int index = ItemContainerGenerator.
IndexFromContainer
(container);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
689
int index = dataGrid.ItemContainerGenerator.
IndexFromContainer
(row);
System\Windows\Controls\TabControl.cs (1)
419
startIndex = ItemContainerGenerator.
IndexFromContainer
(ItemContainerGenerator.ContainerFromItem(SelectedItem));
System\Windows\Controls\VirtualizingStackPanel.cs (5)
6325
generator.
IndexFromContainer
(generator.ContainerFromItem(item)),
6356
generator.
IndexFromContainer
(generator.ContainerFromItem(item)),
7713
generator.
IndexFromContainer
(child), childSize);
7724
generator.
IndexFromContainer
(child), childSize, childPixelSize);
9221
int dataIndex = generator.
IndexFromContainer
(child);
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (3)
788
int index = _tabHeaderItemsControl.ItemContainerGenerator.
IndexFromContainer
(tabHeader);
2002
return tab.ItemContainerGenerator.
IndexFromContainer
(ribbonGroup);
2076
return quickAccessToolBar.ItemContainerGenerator.
IndexFromContainer
(ribbonControl);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1063
int index = ItemContainerGenerator.
IndexFromContainer
(element);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (4)
778
int startCatIndex = gallery.ItemContainerGenerator.
IndexFromContainer
(category);
809
startItemIndex = galleryItem != null ? category.ItemContainerGenerator.
IndexFromContainer
(galleryItem) : category.Items.Count - 1;
838
startItemIndex = galleryItem != null ? category.ItemContainerGenerator.
IndexFromContainer
(galleryItem) : 0;
2489
int itemIndex = parentItemsControl.ItemContainerGenerator.
IndexFromContainer
(menuItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
787
int focusedIndex = ItemContainerGenerator.
IndexFromContainer
(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
830
int focusedIndex = ItemContainerGenerator.
IndexFromContainer
(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
185
int index = ribbon.ItemContainerGenerator.
IndexFromContainer
(this);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
127
int index = tabHeaderItemsControl.ItemContainerGenerator.
IndexFromContainer
(this);