10 references to IndexFromContainer
PresentationFramework (10)
System\Windows\Controls\ItemContainerGenerator.cs (1)
604return IndexFromContainer(container, false);
System\Windows\Controls\VirtualizingStackPanel.cs (9)
3758int index = ((ItemContainerGenerator)generator).IndexFromContainer(itemsOwner, true /*returnLocalIndex*/); 8615int currChildItemIndex = ((ItemContainerGenerator)generator).IndexFromContainer(child, true /*returnLocalIndex*/); 8668int currChildItemIndex = ((ItemContainerGenerator)generator).IndexFromContainer(child, true /*returnLocalIndex*/); 11013int itemIndex = generator.IndexFromContainer(child, true /*returnLocalIndex*/); 11111childItemIndex = ((ItemContainerGenerator)itemsHost.Generator).IndexFromContainer(child, returnLocalIndex); 12187int itemIndex = (generator != null) ? generator.IndexFromContainer(itemsOwner, returnLocalIndex:true) : -1; 13031info._itemIndex = g.IndexFromContainer(child, returnLocalIndex:true); 13055return string.Create(CultureInfo.InvariantCulture, $"{g.IndexFromContainer(container, returnLocalIndex:true)}"); 13060int localIndex = g.IndexFromContainer(container, returnLocalIndex:true);