17 references to ViewCount
PresentationFramework (17)
MS\Internal\Data\CompositeCollectionView.cs (17)
102if (cc == null || cc.ViewCount != 0) // single item or non-empty sub-collection 423index += cc.ViewCount - 1; 446_count += cc.ViewCount; 453_count -= cc.ViewCount; 500startingIndex += cc.ViewCount - 1; 513_count -= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount; 514_count += newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount; 549oldStartingIndex += cc.ViewCount - 1; 560newStartingIndex += cc.ViewCount - 1; 696indexModifier += cc.ViewCount; 885index += cc.ViewCount; // flattened index 968int count = cc.ViewCount; 1008else if (positionY < cc.ViewCount) 1050count += cc.ViewCount; 1275if (cc.ViewCount == 0) // if the collection was emptied out 1382else if (cc.ViewCount > 0) 1384positionY = cc.ViewCount - 1;