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