2 writes to _regions
PresentationFramework (2)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
33_regions = new List<CellRegion>(); 46_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>();
46 references to _regions
PresentationFramework (46)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (46)
110VirtualizedCellInfoCollection removedItems = new VirtualizedCellInfoCollection(_owner, _regions); 111_regions.Clear(); 160int numRegions = _regions.Count; 163CellRegion region = _regions[i]; 187int numRegions = _regions.Count; 190if (_regions[i].Contains(columnIndex, rowIndex)) 207int numRegions = _regions.Count; 210AddRegionToList(_regions[i], list); 221return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 229return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 315int numRegions = _regions.Count; 319CellRegion region = _regions[i]; 389return GetCellInfoFromIndex(_owner, _regions, index); 406int numRegions = _regions.Count; 409count += _regions[i].Size; 776int numRegions = _regions.Count; 779if (!_regions[i].IsEmpty) 798int numRegions = _regions.Count; 801CellRegion region = _regions[i]; 841int numRegions = _regions.Count; 844CellRegion region = _regions[i]; 871CellRegion region = _regions[i]; 874_regions[i] = region; 885_regions.Add(addList[c]); 913for (int i = 0; i < _regions.Count; i++) 915CellRegion region = _regions[i]; 929_regions.RemoveAt(i); 935_regions.InsertRange(i, remainder); 1144_regions.Clear(); 1356int numRegions = collection._regions.Count; 1359CellRegion region = collection._regions[i]; 1372VirtualizedCellInfoCollection orig2 = new VirtualizedCellInfoCollection(c2._owner, c2._regions); 1375int numRegions = c1._regions.Count; 1378CellRegion region = c1._regions[i]; 1383numRegions = orig2._regions.Count; 1386CellRegion region = orig2._regions[i]; 1403if (_regions.Count == 1) 1405CellRegion region = _regions[0]; 1471CellRegion firstRegion = _regions[0]; 1494VirtualizedCellInfoCollection delta = new VirtualizedCellInfoCollection(_owner, _regions); 1497_regions.Clear(); 1498_regions.Add(new CellRegion(columnIndex, rowIndex, columnCount, rowCount)); 1511int numRegions = _regions.Count; 1514if (_regions[i].Intersects(rowRegion)) 1537int numRegions = _regions.Count; 1540CellRegion region = _regions[i];