2 writes to _regions
PresentationFramework (2)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
29_regions = new List<CellRegion>(); 42_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>();
46 references to _regions
PresentationFramework (46)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (46)
106VirtualizedCellInfoCollection removedItems = new VirtualizedCellInfoCollection(_owner, _regions); 107_regions.Clear(); 156int numRegions = _regions.Count; 159CellRegion region = _regions[i]; 183int numRegions = _regions.Count; 186if (_regions[i].Contains(columnIndex, rowIndex)) 203int numRegions = _regions.Count; 206AddRegionToList(_regions[i], list); 217return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 225return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 311int numRegions = _regions.Count; 315CellRegion region = _regions[i]; 385return GetCellInfoFromIndex(_owner, _regions, index); 402int numRegions = _regions.Count; 405count += _regions[i].Size; 772int numRegions = _regions.Count; 775if (!_regions[i].IsEmpty) 794int numRegions = _regions.Count; 797CellRegion region = _regions[i]; 837int numRegions = _regions.Count; 840CellRegion region = _regions[i]; 867CellRegion region = _regions[i]; 870_regions[i] = region; 881_regions.Add(addList[c]); 909for (int i = 0; i < _regions.Count; i++) 911CellRegion region = _regions[i]; 925_regions.RemoveAt(i); 931_regions.InsertRange(i, remainder); 1140_regions.Clear(); 1352int numRegions = collection._regions.Count; 1355CellRegion region = collection._regions[i]; 1368VirtualizedCellInfoCollection orig2 = new VirtualizedCellInfoCollection(c2._owner, c2._regions); 1371int numRegions = c1._regions.Count; 1374CellRegion region = c1._regions[i]; 1379numRegions = orig2._regions.Count; 1382CellRegion region = orig2._regions[i]; 1399if (_regions.Count == 1) 1401CellRegion region = _regions[0]; 1467CellRegion firstRegion = _regions[0]; 1490VirtualizedCellInfoCollection delta = new VirtualizedCellInfoCollection(_owner, _regions); 1493_regions.Clear(); 1494_regions.Add(new CellRegion(columnIndex, rowIndex, columnCount, rowCount)); 1507int numRegions = _regions.Count; 1510if (_regions[i].Intersects(rowRegion)) 1533int numRegions = _regions.Count; 1536CellRegion region = _regions[i];