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