1 write to DisplayIndexMap
PresentationFramework (1)
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (1)
28DisplayIndexMap = new List<int>(5);
26 references to DisplayIndexMap
PresentationFramework (26)
src\Framework\System\Windows\Controls\DataGrid.cs (1)
420get { return InternalColumns.DisplayIndexMap; }
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1655List<int> displayIndexMap = columns.DisplayIndexMap;
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (24)
135DisplayIndexMap.Clear(); 233Debug.Assert(displayIndex >= 0 && displayIndex < DisplayIndexMap.Count, "displayIndex should have already been validated"); 234return this[DisplayIndexMap[displayIndex]]; 368int columnIndex = DisplayIndexMap[oldDisplayIndex]; 369DisplayIndexMap.RemoveAt(oldDisplayIndex); 370DisplayIndexMap.Insert(newDisplayIndex, columnIndex); 437for (int i = 0; i < DisplayIndexMap.Count; i++) 476Debug.Assert(DisplayIndexMap.Count == 0, "DisplayIndexMap should be empty until first measure call."); 550DisplayIndexMap.Add(assignedDisplayIndexMap[displayIndex]); 568Debug.Assert(DisplayIndexMap.Count > Count, "Columns were just removed: the display index map shouldn't have yet been updated"); 576for (int i = 0; i < DisplayIndexMap.Count; i++) 674DisplayIndexMap.Insert(newDisplayIndex, columnIndex); 676for (int i = 0; i < DisplayIndexMap.Count; i++) 678if (DisplayIndexMap[i] >= columnIndex && i != newDisplayIndex) 682DisplayIndexMap[i]++; 692int removedDisplayIndex = DisplayIndexMap.IndexOf(columnIndex); 695DisplayIndexMap.RemoveAt(removedDisplayIndex); 697for (int i = 0; i < DisplayIndexMap.Count; i++) 699if (DisplayIndexMap[i] >= columnIndex) 703DisplayIndexMap[i]--; 732Debug.Assert(Count == DisplayIndexMap.Count, "Display Index map is of the wrong size"); 733for (int i = 0; i < DisplayIndexMap.Count; i++) 735Debug.Assert(DisplayIndexMap[i] >= 0 && DisplayIndexMap[i] < Count, "DisplayIndex map entry doesn't point to a valid column");