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