10 references to IndexFromContainer
PresentationFramework (10)
System\Windows\Controls\ItemContainerGenerator.cs (1)
610
return
IndexFromContainer
(container, false);
System\Windows\Controls\VirtualizingStackPanel.cs (9)
3763
int index = ((ItemContainerGenerator)generator).
IndexFromContainer
(itemsOwner, true /*returnLocalIndex*/);
8620
int currChildItemIndex = ((ItemContainerGenerator)generator).
IndexFromContainer
(child, true /*returnLocalIndex*/);
8673
int currChildItemIndex = ((ItemContainerGenerator)generator).
IndexFromContainer
(child, true /*returnLocalIndex*/);
11018
int itemIndex = generator.
IndexFromContainer
(child, true /*returnLocalIndex*/);
11116
childItemIndex = ((ItemContainerGenerator)itemsHost.Generator).
IndexFromContainer
(child, returnLocalIndex);
12192
int itemIndex = (generator != null) ? generator.
IndexFromContainer
(itemsOwner, returnLocalIndex:true) : -1;
13036
info._itemIndex = g.
IndexFromContainer
(child, returnLocalIndex:true);
13060
return string.Create(CultureInfo.InvariantCulture, $"{g.
IndexFromContainer
(container, returnLocalIndex:true)}");
13065
int localIndex = g.
IndexFromContainer
(container, returnLocalIndex:true);