17 writes to SelectedIndex
Microsoft.VisualStudio.LanguageServices (9)
ChangeSignature\ChangeSignatureDialog.xaml.cs (6)
107
Members.
SelectedIndex
= oldSelectedIndex - 1;
130
Members.
SelectedIndex
= oldSelectedIndex + 1;
237
Members.
SelectedIndex
= oldSelectedIndex - 1;
249
Members.
SelectedIndex
= oldSelectedIndex + 1;
263
Members.
SelectedIndex
= Members.Items.IndexOf(Members.CurrentItem);
268
Members.
SelectedIndex
= _viewModel.GetStartingSelectionIndex();
PickMembers\PickMembersDialog.xaml.cs (2)
87
Members.
SelectedIndex
= oldSelectedIndex - 1;
100
Members.
SelectedIndex
= oldSelectedIndex + 1;
Utilities\AutomationDelegatingListView.cs (1)
34
this.
SelectedIndex
= 0;
PresentationUI (3)
MS\Internal\Documents\Application\ZoomComboBox.cs (2)
239
SelectedIndex
= -1;
309
SelectedIndex
= 0;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1722
ZoomComboBox.
SelectedIndex
= -1;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (5)
804
this.
SelectedIndex
= index;
991
SelectedIndex
= newSelectedIndex;
1009
SelectedIndex
= newSelectedIndex;
1552
SelectedIndex
= selectedIndex;
1559
SelectedIndex
= -1;
37 references to SelectedIndex
Microsoft.VisualStudio.LanguageServices (22)
ChangeSignature\ChangeSignatureDialog.xaml.cs (8)
102
var oldSelectedIndex = Members.
SelectedIndex
;
125
var oldSelectedIndex = Members.
SelectedIndex
;
204
if (Members.
SelectedIndex
>= 0)
206
if (Members.ItemContainerGenerator.ContainerFromIndex(Members.
SelectedIndex
) is not DataGridRow row)
209
row = Members.ItemContainerGenerator.ContainerFromIndex(Members.
SelectedIndex
) as DataGridRow;
231
var oldSelectedIndex = Members.
SelectedIndex
;
246
var oldSelectedIndex = Members.
SelectedIndex
;
266
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)
82
var oldSelectedIndex = Members.
SelectedIndex
;
95
var oldSelectedIndex = Members.
SelectedIndex
;
108
if (Members.
SelectedIndex
>= 0)
110
if (Members.ItemContainerGenerator.ContainerFromIndex(Members.
SelectedIndex
) is not ListViewItem row)
113
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)
768
if (matchedIndex !=
SelectedIndex
)
System\Windows\Controls\Primitives\Selector.cs (2)
412
int selectedIndex = s.
SelectedIndex
;
1509
Debug.Assert(!((
SelectedIndex
>= 0) && (_selectedItems.Count == 0)), "SelectedIndex >= 0 implies _selectedItems nonempty");
System\Windows\Controls\TabControl.cs (3)
398
if (e.Action == NotifyCollectionChangedAction.Remove &&
SelectedIndex
== -1)
531
tabItem = ItemContainerGenerator.ContainerFromIndex(
SelectedIndex
) as TabItem;
553
if (
SelectedIndex
< 0)
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
802
if ((
SelectedIndex
< 0) ||
SelectedIndex
!= index)
971
if (!this.IsMinimized && (
SelectedIndex
>= 0) && (Mouse.Captured == this || Mouse.Captured == null))
973
int selectedTabIndex =
SelectedIndex
;
994
_tabHeaderItemsControl.ScrollIntoView(
SelectedIndex
);
1012
_tabHeaderItemsControl.ScrollIntoView(
SelectedIndex
);
1541
if (
SelectedIndex
< 0 && Items.Count > 0)
1904
int selectedIndex =
SelectedIndex
;
1950
int selectedIndex =
SelectedIndex
;