1 write to DisplayIndexMap
PresentationFramework (1)
System\Windows\Controls\DataGridColumnCollection.cs (1)
22DisplayIndexMap = new List<int>(5);
26 references to DisplayIndexMap
PresentationFramework (26)
System\Windows\Controls\DataGrid.cs (1)
415get { return InternalColumns.DisplayIndexMap; }
System\Windows\Controls\DataGridCellsPanel.cs (1)
1643List<int> displayIndexMap = columns.DisplayIndexMap;
System\Windows\Controls\DataGridColumnCollection.cs (24)
129DisplayIndexMap.Clear(); 226Debug.Assert(displayIndex >= 0 && displayIndex < DisplayIndexMap.Count, "displayIndex should have already been validated"); 227return this[DisplayIndexMap[displayIndex]]; 361int columnIndex = DisplayIndexMap[oldDisplayIndex]; 362DisplayIndexMap.RemoveAt(oldDisplayIndex); 363DisplayIndexMap.Insert(newDisplayIndex, columnIndex); 430for (int i = 0; i < DisplayIndexMap.Count; i++) 469Debug.Assert(DisplayIndexMap.Count == 0, "DisplayIndexMap should be empty until first measure call."); 543DisplayIndexMap.Add(assignedDisplayIndexMap[displayIndex]); 561Debug.Assert(DisplayIndexMap.Count > Count, "Columns were just removed: the display index map shouldn't have yet been updated"); 569for (int i = 0; i < DisplayIndexMap.Count; i++) 667DisplayIndexMap.Insert(newDisplayIndex, columnIndex); 669for (int i = 0; i < DisplayIndexMap.Count; i++) 671if (DisplayIndexMap[i] >= columnIndex && i != newDisplayIndex) 675DisplayIndexMap[i]++; 685int removedDisplayIndex = DisplayIndexMap.IndexOf(columnIndex); 688DisplayIndexMap.RemoveAt(removedDisplayIndex); 690for (int i = 0; i < DisplayIndexMap.Count; i++) 692if (DisplayIndexMap[i] >= columnIndex) 696DisplayIndexMap[i]--; 725Debug.Assert(Count == DisplayIndexMap.Count, "Display Index map is of the wrong size"); 726for (int i = 0; i < DisplayIndexMap.Count; i++) 728Debug.Assert(DisplayIndexMap[i] >= 0 && DisplayIndexMap[i] < Count, "DisplayIndex map entry doesn't point to a valid column");