15 references to DataGridSelectionMode
PresentationFramework (15)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
216
return this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Extended;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
709
if (this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Single &&
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
306
if (this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Single &&
354
return this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Extended;
System\Windows\Controls\DataGrid.cs (11)
4150
DataGridSelectionMode
selectionMode = SelectionMode;
4210
if ((selectionMode ==
DataGridSelectionMode
.Single) && // Single select mode
4335
e.CanExecute = (dataGrid.SelectionMode ==
DataGridSelectionMode
.Extended) && dataGrid.IsEnabled;
4435
public
DataGridSelectionMode
SelectionMode
4437
get { return (
DataGridSelectionMode
)GetValue(SelectionModeProperty); }
4445
DependencyProperty.Register("SelectionMode", typeof(
DataGridSelectionMode
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridSelectionMode
.Extended, new PropertyChangedCallback(OnSelectionModeChanged)));
4450
DataGridSelectionMode
newSelectionMode = (
DataGridSelectionMode
)e.NewValue;
4451
bool changingToSingleMode = newSelectionMode ==
DataGridSelectionMode
.Single;
4466
dataGrid.CanSelectMultipleItems = (newSelectionMode !=
DataGridSelectionMode
.Single);