10 references to IndexFromContainer
PresentationFramework (10)
System\Windows\Controls\ItemContainerGenerator.cs (1)
604return IndexFromContainer(container, false);
System\Windows\Controls\VirtualizingStackPanel.cs (9)
3756int index = ((ItemContainerGenerator)generator).IndexFromContainer(itemsOwner, true /*returnLocalIndex*/); 8615int currChildItemIndex = ((ItemContainerGenerator)generator).IndexFromContainer(child, true /*returnLocalIndex*/); 8668int currChildItemIndex = ((ItemContainerGenerator)generator).IndexFromContainer(child, true /*returnLocalIndex*/); 11015int itemIndex = generator.IndexFromContainer(child, true /*returnLocalIndex*/); 11113childItemIndex = ((ItemContainerGenerator)itemsHost.Generator).IndexFromContainer(child, returnLocalIndex); 12190int itemIndex = (generator != null) ? generator.IndexFromContainer(itemsOwner, returnLocalIndex:true) : -1; 13029_itemIndex = g.IndexFromContainer(child, returnLocalIndex: true), 13054return string.Create(CultureInfo.InvariantCulture, $"{g.IndexFromContainer(container, returnLocalIndex:true)}"); 13059int localIndex = g.IndexFromContainer(container, returnLocalIndex:true);