2 writes to _regions
PresentationFramework (2)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
28_regions = new List<CellRegion>(); 41_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>();
46 references to _regions
PresentationFramework (46)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (46)
105VirtualizedCellInfoCollection removedItems = new VirtualizedCellInfoCollection(_owner, _regions); 106_regions.Clear(); 155int numRegions = _regions.Count; 158CellRegion region = _regions[i]; 182int numRegions = _regions.Count; 185if (_regions[i].Contains(columnIndex, rowIndex)) 202int numRegions = _regions.Count; 205AddRegionToList(_regions[i], list); 216return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 224return new VirtualizedCellInfoCollectionEnumerator(_owner, _regions, this); 310int numRegions = _regions.Count; 314CellRegion region = _regions[i]; 384return GetCellInfoFromIndex(_owner, _regions, index); 401int numRegions = _regions.Count; 404count += _regions[i].Size; 771int numRegions = _regions.Count; 774if (!_regions[i].IsEmpty) 793int numRegions = _regions.Count; 796CellRegion region = _regions[i]; 836int numRegions = _regions.Count; 839CellRegion region = _regions[i]; 866CellRegion region = _regions[i]; 869_regions[i] = region; 880_regions.Add(addList[c]); 908for (int i = 0; i < _regions.Count; i++) 910CellRegion region = _regions[i]; 924_regions.RemoveAt(i); 930_regions.InsertRange(i, remainder); 1139_regions.Clear(); 1351int numRegions = collection._regions.Count; 1354CellRegion region = collection._regions[i]; 1367VirtualizedCellInfoCollection orig2 = new VirtualizedCellInfoCollection(c2._owner, c2._regions); 1370int numRegions = c1._regions.Count; 1373CellRegion region = c1._regions[i]; 1378numRegions = orig2._regions.Count; 1381CellRegion region = orig2._regions[i]; 1398if (_regions.Count == 1) 1400CellRegion region = _regions[0]; 1466CellRegion firstRegion = _regions[0]; 1489VirtualizedCellInfoCollection delta = new VirtualizedCellInfoCollection(_owner, _regions); 1492_regions.Clear(); 1493_regions.Add(new CellRegion(columnIndex, rowIndex, columnCount, rowCount)); 1506int numRegions = _regions.Count; 1509if (_regions[i].Intersects(rowRegion)) 1532int numRegions = _regions.Count; 1535CellRegion region = _regions[i];