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