23 references to SelectedItem
Microsoft.VisualStudio.LanguageServices (10)
PullMemberUp\MainDialog\PullMemberUpDialog.xaml.cs (1)
73
if (DestinationTreeView.
SelectedItem
is BaseTypeTreeNodeViewModel memberGraphNode)
ValueTracking\ValueTrackingTree.xaml.cs (9)
30
Key.Enter => TrySelectItem(ValueTrackingTreeView.
SelectedItem
as TreeViewItemBase, navigate: true),
31
Key.Right => TrySetExpanded(ValueTrackingTreeView.
SelectedItem
as TreeViewItemBase, true),
32
Key.Left => TrySetExpanded(ValueTrackingTreeView.
SelectedItem
as TreeViewItemBase, false),
33
Key.Space => TryToggleExpanded(ValueTrackingTreeView.
SelectedItem
as TreeViewItemBase),
98
if (ValueTrackingTreeView.
SelectedItem
is null)
103
var item = (TreeViewItemBase)ValueTrackingTreeView.
SelectedItem
;
115
if (ValueTrackingTreeView.
SelectedItem
is null)
120
var item = (TreeViewItemBase)ValueTrackingTreeView.
SelectedItem
;
126
_viewModel.SelectedItem = ValueTrackingTreeView.
SelectedItem
as TreeViewItemBase;
PresentationFramework (13)
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
338
if (treeView == null || (treeView.
SelectedItem
!= null && treeView.SelectedContainer != Owner))
System\Windows\Controls\TreeView.cs (11)
58
/// The DependencyProperty for the <see cref="
SelectedItem
"/> property.
77
if (
SelectedItem
!= data)
126
/// Specifies the path to query on <see cref="
SelectedItem
" /> to calculate <see cref="SelectedValue" />.
139
tree.UpdateSelectedValue(tree.
SelectedItem
);
147
/// Event fired when <see cref="
SelectedItem
"/> changes.
152
/// Event fired when <see cref="
SelectedItem
"/> changes.
169
/// Called when <see cref="
SelectedItem
"/> changes.
205
oldValue =
SelectedItem
;
417
if ((
SelectedItem
!= null) && !IsSelectedContainerHookedUp)
427
object selectedItem =
SelectedItem
;
451
item =
SelectedItem
;
System\Windows\Controls\TreeViewItem.cs (1)
983
object selectedItem = tree.
SelectedItem
;