17 writes to SelectedIndex
Microsoft.VisualStudio.LanguageServices (9)
ChangeSignature\ChangeSignatureDialog.xaml.cs (6)
108Members.SelectedIndex = oldSelectedIndex - 1; 131Members.SelectedIndex = oldSelectedIndex + 1; 238Members.SelectedIndex = oldSelectedIndex - 1; 250Members.SelectedIndex = oldSelectedIndex + 1; 264Members.SelectedIndex = Members.Items.IndexOf(Members.CurrentItem); 269Members.SelectedIndex = _viewModel.GetStartingSelectionIndex();
PickMembers\PickMembersDialog.xaml.cs (2)
88Members.SelectedIndex = oldSelectedIndex - 1; 101Members.SelectedIndex = oldSelectedIndex + 1;
Utilities\AutomationDelegatingListView.cs (1)
34this.SelectedIndex = 0;
PresentationUI (3)
MS\Internal\Documents\Application\ZoomComboBox.cs (2)
237SelectedIndex = -1; 307SelectedIndex = 0;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1715ZoomComboBox.SelectedIndex = -1;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
801this.SelectedIndex = index; 988SelectedIndex = newSelectedIndex; 1006SelectedIndex = newSelectedIndex; 1549SelectedIndex = selectedIndex; 1556SelectedIndex = -1;
37 references to SelectedIndex
Microsoft.VisualStudio.LanguageServices (22)
ChangeSignature\ChangeSignatureDialog.xaml.cs (8)
103var oldSelectedIndex = Members.SelectedIndex; 126var oldSelectedIndex = Members.SelectedIndex; 205if (Members.SelectedIndex >= 0) 207if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row) 210row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as DataGridRow; 232var oldSelectedIndex = Members.SelectedIndex; 247var oldSelectedIndex = Members.SelectedIndex; 267if (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)
83var oldSelectedIndex = Members.SelectedIndex; 96var oldSelectedIndex = Members.SelectedIndex; 109if (Members.SelectedIndex >= 0) 111if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not ListViewItem row) 114row = 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)
758if (matchedIndex != SelectedIndex)
System\Windows\Controls\Primitives\Selector.cs (2)
403int selectedIndex = s.SelectedIndex; 1500Debug.Assert(!((SelectedIndex >= 0) && (_selectedItems.Count == 0)), "SelectedIndex >= 0 implies _selectedItems nonempty");
System\Windows\Controls\TabControl.cs (3)
388if (e.Action == NotifyCollectionChangedAction.Remove && SelectedIndex == -1) 521tabItem = ItemContainerGenerator.ContainerFromIndex(SelectedIndex) as TabItem; 543if (SelectedIndex < 0)
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
799if ((SelectedIndex < 0) || SelectedIndex != index) 968if (!this.IsMinimized && (SelectedIndex >= 0) && (Mouse.Captured == this || Mouse.Captured == null)) 970int selectedTabIndex = SelectedIndex; 991_tabHeaderItemsControl.ScrollIntoView(SelectedIndex); 1009_tabHeaderItemsControl.ScrollIntoView(SelectedIndex); 1538if (SelectedIndex < 0 && Items.Count > 0) 1901int selectedIndex = SelectedIndex; 1947int selectedIndex = SelectedIndex;