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