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