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