4 types derived from TreeViewItemBase
Microsoft.VisualStudio.LanguageServices (4)
ValueTracking\ComputingTreeViewItem.cs (1)
7
internal class ComputingTreeViewItem :
TreeViewItemBase
ValueTracking\EmptyTreeViewItem.cs (1)
7
internal class EmptyTreeViewItem :
TreeViewItemBase
ValueTracking\TreeItemViewModel.cs (1)
19
internal abstract class TreeItemViewModel :
TreeViewItemBase
ValueTracking\ValueTrackingTreeRootViewModel.cs (1)
7
internal class ValueTrackingTreeRootViewModel :
TreeViewItemBase
32 references to TreeViewItemBase
Microsoft.VisualStudio.LanguageServices (32)
ValueTracking\TreeViewItemBase.cs (12)
15
public ObservableCollection<
TreeViewItemBase
> ChildItems { get; } = [];
16
public
TreeViewItemBase
? Parent { get; set; }
49
public
TreeViewItemBase
GetNextInTree()
56
var
sibling = GetSibling(next: true);
68
public
TreeViewItemBase
GetPreviousInTree()
70
var
sibling = GetSibling(next: false);
79
private
TreeViewItemBase
GetLastVisibleDescendentOrSelf()
86
var
lastChild = ChildItems.Last();
90
private
TreeViewItemBase
? GetSibling(bool next = true)
118
static void SetParents(IList? items,
TreeViewItemBase
? parent)
125
foreach (
var
item in items.Cast<
TreeViewItemBase
>())
ValueTracking\ValueTrackingTree.xaml.cs (18)
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
),
39
bool TrySelectItem(
TreeViewItemBase
? node, bool navigate)
50
bool TrySetExpanded(
TreeViewItemBase
? node, bool expanded)
61
bool TryToggleExpanded(
TreeViewItemBase
? node)
74
if (sender is
TreeViewItemBase
viewModel)
86
private void SelectItem(
TreeViewItemBase
? item, bool navigate = false)
96
private
TreeViewItemBase
GetNextItem(bool expandNode)
100
return (
TreeViewItemBase
)ValueTrackingTreeView.Items[0];
103
var
item = (
TreeViewItemBase
)ValueTrackingTreeView.SelectedItem;
113
private
TreeViewItemBase
GetPreviousItem()
117
return (
TreeViewItemBase
)ValueTrackingTreeView.Items[^1];
120
var
item = (
TreeViewItemBase
)ValueTrackingTreeView.SelectedItem;
126
_viewModel.SelectedItem = ValueTrackingTreeView.SelectedItem as
TreeViewItemBase
;
ValueTracking\ValueTrackingTreeViewModel.cs (2)
31
private
TreeViewItemBase
? _selectedItem;
32
public
TreeViewItemBase
? SelectedItem