17 references to ViewCount
PresentationFramework (17)
MS\Internal\Data\CompositeCollectionView.cs (17)
105if (cc == null || cc.ViewCount != 0) // single item or non-empty sub-collection 427index += cc.ViewCount - 1; 450_count += cc.ViewCount; 457_count -= cc.ViewCount; 504startingIndex += cc.ViewCount - 1; 517_count -= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount; 518_count += newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount; 553oldStartingIndex += cc.ViewCount - 1; 564newStartingIndex += cc.ViewCount - 1; 701indexModifier += cc.ViewCount; 894index += cc.ViewCount; // flattened index 977int count = cc.ViewCount; 1017else if (positionY < cc.ViewCount) 1059count += cc.ViewCount; 1284if (cc.ViewCount == 0) // if the collection was emptied out 1391else if (cc.ViewCount > 0) 1393positionY = cc.ViewCount - 1;