17 references to ViewCount
PresentationFramework (17)
MS\Internal\Data\CompositeCollectionView.cs (17)
111if (cc == null || cc.ViewCount != 0) // single item or non-empty sub-collection 433index += cc.ViewCount - 1; 456_count += cc.ViewCount; 463_count -= cc.ViewCount; 510startingIndex += cc.ViewCount - 1; 523_count -= oldCollectionContainer == null ? 1 : oldCollectionContainer.ViewCount; 524_count += newCollectionContainer == null ? 1 : newCollectionContainer.ViewCount; 559oldStartingIndex += cc.ViewCount - 1; 570newStartingIndex += cc.ViewCount - 1; 707indexModifier += cc.ViewCount; 900index += cc.ViewCount; // flattened index 983int count = cc.ViewCount; 1023else if (positionY < cc.ViewCount) 1065count += cc.ViewCount; 1290if (cc.ViewCount == 0) // if the collection was emptied out 1397else if (cc.ViewCount > 0) 1399positionY = cc.ViewCount - 1;