2 writes to _regions
PresentationFramework (2)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
34_regions = new List<CellRegion>(); 47_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>();
46 references to _regions
PresentationFramework (46)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (46)
111VirtualizedCellInfoCollection removedItems = new VirtualizedCellInfoCollection(_owner, _regions); 112_regions.Clear(); 161int numRegions = _regions.Count; 164CellRegion region = _regions[i]; 188int numRegions = _regions.Count; 191if (_regions[i].Contains(columnIndex, rowIndex)) 208int numRegions = _regions.Count; 211AddRegionToList(_regions[i], list); 222return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 230return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 316int numRegions = _regions.Count; 320CellRegion region = _regions[i]; 389return GetCellInfoFromIndex(_owner, _regions, index); 409int numRegions = _regions.Count; 412count += _regions[i].Size; 779int numRegions = _regions.Count; 782if (!_regions[i].IsEmpty) 801int numRegions = _regions.Count; 804CellRegion region = _regions[i]; 844int numRegions = _regions.Count; 847CellRegion region = _regions[i]; 874CellRegion region = _regions[i]; 877_regions[i] = region; 888_regions.Add(addList[c]); 916for (int i = 0; i < _regions.Count; i++) 918CellRegion region = _regions[i]; 932_regions.RemoveAt(i); 938_regions.InsertRange(i, remainder); 1147_regions.Clear(); 1359int numRegions = collection._regions.Count; 1362CellRegion region = collection._regions[i]; 1375VirtualizedCellInfoCollection orig2 = new VirtualizedCellInfoCollection(c2._owner, c2._regions); 1378int numRegions = c1._regions.Count; 1381CellRegion region = c1._regions[i]; 1386numRegions = orig2._regions.Count; 1389CellRegion region = orig2._regions[i]; 1406if (_regions.Count == 1) 1408CellRegion region = _regions[0]; 1474CellRegion firstRegion = _regions[0]; 1497VirtualizedCellInfoCollection delta = new VirtualizedCellInfoCollection(_owner, _regions); 1500_regions.Clear(); 1501_regions.Add(new CellRegion(columnIndex, rowIndex, columnCount, rowCount)); 1514int numRegions = _regions.Count; 1517if (_regions[i].Intersects(rowRegion)) 1540int numRegions = _regions.Count; 1543CellRegion region = _regions[i];