1 write to _selectedCells
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
88_selectedCells = new SelectedCellsCollection(this);
58 references to _selectedCells
PresentationFramework (58)
System\Windows\Controls\DataGrid.cs (58)
244_selectedCells.Clear(); 660_selectedCells.OnColumnsChanged(action, oldDisplayIndex, oldColumn, newDisplayIndex, SelectedItems); 2152reselectPlaceholderCells = ((newItemIndex >= 0) && _selectedCells.Intersects(newItemIndex, out columnIndexRanges)); 2186_selectedCells.RemoveRegion(newItemIndex, 0, 1, Columns.Count); 2192_selectedCells.AddRegion(rowIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]); 2224_selectedCells.RemoveRegion(newItemIndex + 1, 0, 1, Columns.Count); 2248_selectedCells.AddRegion(newItemIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]); 2669_selectedCells.ClearFullRows(SelectedItems); 3677reselectPlaceholderCells = ((newItemIndex >= 0) && _selectedCells.Intersects(newItemIndex, out columnIndexRanges)); 3709_selectedCells.RemoveRegion(newItemIndex, 0, 1, Columns.Count); 3715_selectedCells.AddRegion(rowIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]); 4129get { return _selectedCells; } 4134get { return _selectedCells; } 4209(_selectedCells.Count > 1)) // There is more than one selected cell 4213_selectedCells.RemoveAllButOne(newItems[0]); 4270int currentSelectionCount = _selectedCells.Count; 4363_selectedCells.AddRegion(0, 0, numItems, numColumns); 4373_selectedCells.Clear(); 4374_selectedCells.Add(currentCellInfo); 4396if (_selectedCells.Count > 0) 4398_selectedCells.Clear(); 4401_selectedCells.AddRegion(0, 0, numItems, numColumns); 4415_selectedCells.Clear(); 4457dataGrid._selectedCells.RemoveAllButOne(); 4473dataGrid._selectedCells.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.Index); 4481dataGrid._selectedCells.RemoveAllButOne(); 4521dataGrid._selectedCells.Clear(); 4677_selectedCells.AddRegion(rowIndex, 0, 1, columnCount); 4681_selectedCells.RemoveRegion(rowIndex, 0, 1, columnCount); 4714_selectedCells.AddValidatedCell(cellInfo); 4716else if (_selectedCells.Contains(cellInfo)) 4718_selectedCells.Remove(cellInfo); 4901_selectedCells.Clear(); 4941_selectedCells.RemoveRegion(removeRangeStartIndex, 0, removeRangeEndIndex - removeRangeStartIndex + 1, Columns.Count); 4967_selectedCells.AddRegion(startIndex, 0, endIndex - startIndex + 1, _columns.Count); 4983if (_selectedCells.Count > 0) 4988_selectedCells.Clear(); 5003_selectedCells.AddRegion(_editingRowInfo.Index, 0, 1, numColumns); 5081_selectedCells.Clear(); 5094_selectedCells.RemoveRegion(previousStartIndex, previousStartColumnIndex, previousRowCount, previousColumnCount); 5132_selectedCells.AddRegion(Math.Min(startIndex, endIndex), Math.Min(startColumnIndex, endColumnIndex), newRowCount, newColumnCount); 5137bool selectedCellsContainsCellInfo = _selectedCells.Contains(cellInfo); 5143selectedCellsContainsCellInfo = _selectedCells.Contains(_editingRowInfo.Index, cellInfoColumnIndex); 5152_selectedCells.RemoveRegion(_editingRowInfo.Index, cellInfoColumnIndex, 1, 1); 5156_selectedCells.Remove(cellInfo); 5177_selectedCells.Clear(); 5183_selectedCells.AddRegion(_editingRowInfo.Index, cellInfoColumnIndex, 1, 1); 5188_selectedCells.AddValidatedCell(cellInfo); 5212_selectedCells.AddRegion(itemIndex, 0, 1, numColumns); 5228_selectedCells.RemoveRegion(itemIndex, 0, 1, numColumns); 5386_selectedCells.OnItemsCollectionChanged(e, ranges); 7655_selectedCells.RestoreOnlyFullRows(ranges); 7788_selectedCells.AddRegion(info.Index, 0, 1, columnCount); 8255args.CanExecute = ClipboardCopyMode != DataGridClipboardCopyMode.None && _selectedCells.Count > 0; 8291if (_selectedCells.GetSelectionRange(out minColumnDisplayIndex, out maxColumnDisplayIndex, out minRowIndex, out maxRowIndex)) 8311if (_selectedCells.Intersects(i)) 8374if (_selectedCells.Intersects(rowIndex)) 8387if (_selectedCells.Contains(rowIndex, i))