36 references to DataGridSelectionUnit
PresentationFramework (36)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
183case DataGridSelectionUnit.Cell: 189case DataGridSelectionUnit.FullRow: 195case DataGridSelectionUnit.CellOrRowHeader:
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
831return (this.OwningDataGrid != null && (this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.Cell || 832this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.CellOrRowHeader));
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
562(this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.FullRow || 563this.OwningDataGrid.SelectionUnit == DataGridSelectionUnit.CellOrRowHeader));
System\Windows\Controls\DataGrid.cs (26)
1032if (dataGrid.SelectionUnit == DataGridSelectionUnit.Cell) 1372SelectionUnit == DataGridSelectionUnit.CellOrRowHeader && 4151DataGridSelectionUnit selectionUnit = SelectionUnit; 4152if (!IsUpdatingSelectedCells && (selectionUnit == DataGridSelectionUnit.FullRow)) 4220(selectionUnit == DataGridSelectionUnit.CellOrRowHeader)) 4342if (dataGrid.SelectionUnit == DataGridSelectionUnit.Cell) 4386if (SelectionUnit == DataGridSelectionUnit.FullRow) 4420if (SelectionUnit != DataGridSelectionUnit.Cell) 4452DataGridSelectionUnit selectionUnit = dataGrid.SelectionUnit; 4454if (changingToSingleMode && (selectionUnit == DataGridSelectionUnit.Cell)) 4468if (changingToSingleMode && (selectionUnit == DataGridSelectionUnit.CellOrRowHeader)) 4497public DataGridSelectionUnit SelectionUnit 4499get { return (DataGridSelectionUnit)GetValue(SelectionUnitProperty); } 4507DependencyProperty.Register("SelectionUnit", typeof(DataGridSelectionUnit), typeof(DataGrid), new FrameworkPropertyMetadata(DataGridSelectionUnit.FullRow, new PropertyChangedCallback(OnSelectionUnitChanged))); 4512DataGridSelectionUnit oldUnit = (DataGridSelectionUnit)e.OldValue; 4515if (oldUnit != DataGridSelectionUnit.Cell) 4520if (oldUnit != DataGridSelectionUnit.FullRow) 4734DataGridSelectionUnit selectionUnit = SelectionUnit; 4737if (selectionUnit == DataGridSelectionUnit.FullRow) 5099if (SelectionUnit == DataGridSelectionUnit.CellOrRowHeader) 5162if ((SelectionUnit == DataGridSelectionUnit.CellOrRowHeader) && 5362case DataGridSelectionUnit.FullRow: 5363case DataGridSelectionUnit.CellOrRowHeader: 5366case DataGridSelectionUnit.Cell:
System\Windows\Controls\DataGridRow.cs (3)
1203DataGridSelectionUnit unit = dataGrid.SelectionUnit; 1204return (unit == DataGridSelectionUnit.FullRow) || 1205(unit == DataGridSelectionUnit.CellOrRowHeader);