17 writes to SelectedIndex
Microsoft.VisualStudio.LanguageServices (9)
ChangeSignature\ChangeSignatureDialog.xaml.cs (6)
107Members.SelectedIndex = oldSelectedIndex - 1; 130Members.SelectedIndex = oldSelectedIndex + 1; 237Members.SelectedIndex = oldSelectedIndex - 1; 249Members.SelectedIndex = oldSelectedIndex + 1; 263Members.SelectedIndex = Members.Items.IndexOf(Members.CurrentItem); 268Members.SelectedIndex = _viewModel.GetStartingSelectionIndex();
PickMembers\PickMembersDialog.xaml.cs (2)
87Members.SelectedIndex = oldSelectedIndex - 1; 100Members.SelectedIndex = oldSelectedIndex + 1;
Utilities\AutomationDelegatingListView.cs (1)
34this.SelectedIndex = 0;
PresentationUI (3)
MS\Internal\Documents\Application\ZoomComboBox.cs (2)
239SelectedIndex = -1; 309SelectedIndex = 0;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1722ZoomComboBox.SelectedIndex = -1;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
804this.SelectedIndex = index; 991SelectedIndex = newSelectedIndex; 1009SelectedIndex = newSelectedIndex; 1552SelectedIndex = selectedIndex; 1559SelectedIndex = -1;
37 references to SelectedIndex
Microsoft.VisualStudio.LanguageServices (22)
ChangeSignature\ChangeSignatureDialog.xaml.cs (8)
102var oldSelectedIndex = Members.SelectedIndex; 125var oldSelectedIndex = Members.SelectedIndex; 204if (Members.SelectedIndex >= 0) 206if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row) 209row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as DataGridRow; 231var oldSelectedIndex = Members.SelectedIndex; 246var oldSelectedIndex = Members.SelectedIndex; 266if (Members.SelectedIndex == -1)
EditorConfigSettings\Analyzers\View\SeverityControl.xaml.cs (1)
25=> _viewModel.SelectionChanged(SeverityComboBox.SelectedIndex);
EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.xaml.cs (1)
25=> _viewModel.SelectionChanged(SeverityComboBox.SelectedIndex);
EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.xaml.cs (1)
24=> _viewModel.SelectionChanged(ValueComboBox.SelectedIndex);
EditorConfigSettings\Common\EnumPropertyView.xaml.cs (1)
25var index = EnumValueComboBox.SelectedIndex;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.xaml.cs (1)
25=> _viewModel.SelectionChanged(SeverityComboBox.SelectedIndex);
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.xaml.cs (1)
25=> _viewModel.SelectionChanged(StyleComboBox.SelectedIndex);
PickMembers\PickMembersDialog.xaml.cs (5)
82var oldSelectedIndex = Members.SelectedIndex; 95var oldSelectedIndex = Members.SelectedIndex; 108if (Members.SelectedIndex >= 0) 110if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not ListViewItem row) 113row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as ListViewItem;
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (2)
320var action = combobox.SelectedIndex switch 324_ => throw ExceptionUtilities.UnexpectedValue(combobox.SelectedIndex)
Utilities\AutomationDelegatingListView.cs (1)
32if (this.SelectedIndex == -1)
PresentationFramework (6)
System\Windows\Controls\ComboBox.cs (1)
768if (matchedIndex != SelectedIndex)
System\Windows\Controls\Primitives\Selector.cs (2)
412int selectedIndex = s.SelectedIndex; 1509Debug.Assert(!((SelectedIndex >= 0) && (_selectedItems.Count == 0)), "SelectedIndex >= 0 implies _selectedItems nonempty");
System\Windows\Controls\TabControl.cs (3)
398if (e.Action == NotifyCollectionChangedAction.Remove && SelectedIndex == -1) 531tabItem = ItemContainerGenerator.ContainerFromIndex(SelectedIndex) as TabItem; 553if (SelectedIndex < 0)
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
802if ((SelectedIndex < 0) || SelectedIndex != index) 971if (!this.IsMinimized && (SelectedIndex >= 0) && (Mouse.Captured == this || Mouse.Captured == null)) 973int selectedTabIndex = SelectedIndex; 994_tabHeaderItemsControl.ScrollIntoView(SelectedIndex); 1012_tabHeaderItemsControl.ScrollIntoView(SelectedIndex); 1541if (SelectedIndex < 0 && Items.Count > 0) 1904int selectedIndex = SelectedIndex; 1950int selectedIndex = SelectedIndex;