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