15 references to DataGridSelectionMode
PresentationFramework (15)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
211
return this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Extended;
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
703
if (this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Single &&
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
301
if (this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Single &&
349
return this.OwningDataGrid.SelectionMode ==
DataGridSelectionMode
.Extended;
System\Windows\Controls\DataGrid.cs (11)
4147
DataGridSelectionMode
selectionMode = SelectionMode;
4207
if ((selectionMode ==
DataGridSelectionMode
.Single) && // Single select mode
4332
e.CanExecute = (dataGrid.SelectionMode ==
DataGridSelectionMode
.Extended) && dataGrid.IsEnabled;
4432
public
DataGridSelectionMode
SelectionMode
4434
get { return (
DataGridSelectionMode
)GetValue(SelectionModeProperty); }
4442
DependencyProperty.Register("SelectionMode", typeof(
DataGridSelectionMode
), typeof(DataGrid), new FrameworkPropertyMetadata(
DataGridSelectionMode
.Extended, new PropertyChangedCallback(OnSelectionModeChanged)));
4447
DataGridSelectionMode
newSelectionMode = (
DataGridSelectionMode
)e.NewValue;
4448
bool changingToSingleMode = newSelectionMode ==
DataGridSelectionMode
.Single;
4463
dataGrid.CanSelectMultipleItems = (newSelectionMode !=
DataGridSelectionMode
.Single);