4 instantiations of TreeViewItem
PresentationFramework (4)
System\Windows\Controls\TreeView.cs (1)
405return new TreeViewItem();
System\Windows\Controls\TreeViewItem.cs (1)
886return new TreeViewItem();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10598bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TreeViewItem(); };
System\Windows\Markup\KnownTypes.cs (1)
1625case KnownElements.TreeViewItem: o = new System.Windows.Controls.TreeViewItem(); break;
94 references to TreeViewItem
Microsoft.VisualStudio.LanguageServices (3)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (1)
128this.SymbolTree.AddHandler(System.Windows.Controls.TreeViewItem.SelectedEvent, new System.Windows.RoutedEventHandler(this.SymbolTreeItem_Selected));
DocumentOutline\DocumentOutlineView.xaml.cs (2)
288&& e.OriginalSource is TreeViewItem { DataContext: DocumentSymbolDataViewModel symbolModel } item 321if (e.OriginalSource is TreeViewItem item)
PresentationFramework (91)
MS\Internal\Helper.cs (1)
1533TreeViewItem.IsExpandedProperty.GlobalIndex,
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
73TreeViewItem treeViewItem = owner.ItemContainerGenerator.ContainerFromIndex(i) as TreeViewItem; 155TreeViewItem selectedContainer = ((TreeView)Owner).SelectedContainer;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (17)
15public TreeViewItemAutomationPeer(TreeViewItem owner): base(owner) 57TreeViewItem owner = Owner as TreeViewItem; 91if (child is TreeViewItem) 268TreeViewItem treeViewItem = (TreeViewItem)Owner; 284TreeViewItem treeViewItem = (TreeViewItem)Owner; 298TreeViewItem treeViewItem = (TreeViewItem)Owner; 328((TreeViewItem)Owner).IsSelected = true; 336TreeView treeView = ((TreeViewItem)Owner).ParentTreeView; 342((TreeViewItem)Owner).IsSelected = true; 350((TreeViewItem)Owner).IsSelected = false; 360return ((TreeViewItem)Owner).IsSelected; 371ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl; 385((TreeViewItem)Owner).BringIntoView();
System\Windows\Controls\ItemsControl.cs (6)
1394TreeViewItem treeViewItem = container as TreeViewItem; 1419TreeViewItem treeViewItem = container as TreeViewItem; 3460TreeViewItem treeViewItem = element as TreeViewItem;
System\Windows\Controls\TreeView.cs (13)
23[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(TreeViewItem))] 185internal void ChangeSelection(object data, TreeViewItem container, bool selected) 195TreeViewItem oldContainer = _selectedContainer; // Saved for the automation event 337internal void HandleSelectionAndCollapsed(TreeViewItem collapsed) 342TreeViewItem current = _selectedContainer; 348TreeViewItem oldContainer = _selectedContainer; 396return item is TreeViewItem; 447TreeViewItem container; 458private bool GetFirstItem(out object item, out TreeViewItem container) 463container = ItemContainerGenerator.ContainerFromIndex(0) as TreeViewItem; 482internal TreeViewItem SelectedContainer 723protected virtual bool ExpandSubtree(TreeViewItem container) 875private TreeViewItem _selectedContainer;
System\Windows\Controls\TreeViewItem.cs (39)
24[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(TreeViewItem))] 31DefaultStyleKeyProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(typeof(TreeViewItem))); 32VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 33_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TreeViewItem)); 35KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue)); 36KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 37IsTabStopProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 39IsMouseOverPropertyKey.OverrideMetadata(typeof(TreeViewItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 40IsEnabledProperty.OverrideMetadata(typeof(TreeViewItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 41Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 43EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 44EventManager.RegisterClassHandler(typeof(TreeViewItem), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); 45AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 67typeof(TreeViewItem), 88TreeViewItem item = (TreeViewItem) d; 138typeof(TreeViewItem), 155TreeViewItem item = (TreeViewItem)d; 181public static readonly DependencyProperty IsSelectionActiveProperty = Selector.IsSelectionActiveProperty.AddOwner(typeof(TreeViewItem)); 204public static readonly RoutedEvent ExpandedEvent = EventManager.RegisterRoutedEvent("Expanded", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 236public static readonly RoutedEvent CollapsedEvent = EventManager.RegisterRoutedEvent("Collapsed", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 268public static readonly RoutedEvent SelectedEvent = EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 300public static readonly RoutedEvent UnselectedEvent = EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 447internal TreeViewItem ParentTreeViewItem 451return ParentItemsControl as TreeViewItem; 515TreeViewItem parent = ParentTreeViewItem; 719TreeViewItem item = predict as TreeViewItem; 739TreeViewItem tvi = (TreeViewItem)sender; 750((TreeViewItem)sender).HandleBringIntoView(e); 756TreeViewItem parent = ParentTreeViewItem; 877return item is TreeViewItem; 1004private static void ExpandRecursive(TreeViewItem item) 1037TreeViewItem subitem; 1043subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i); 1047subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\VirtualizingPanel.cs (1)
379TreeViewItem.IsVirtualizingPropagationHelper(parent, (DependencyObject)virtualizingChild);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
6559if (container is TreeViewItem)
System\Windows\Input\KeyboardNavigation.cs (4)
1942return (element is TreeViewItem) && IsFocusableInternal(element); 1954return (element is TreeViewItem) && IsFocusableInternal(element); 2458TreeViewItem tvi = element as TreeViewItem;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
781case 687: t = () => typeof(TreeViewItem); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
6045Type type = typeof(System.Windows.Controls.TreeViewItem); 6047this.GetXamlType(typeof(System.Windows.Controls.TreeViewItem)), // DeclaringType 6053bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeViewItem)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10596typeof(System.Windows.Controls.TreeViewItem),
System\Windows\Markup\KnownTypes.cs (1)
6241case KnownElements.TreeViewItem: t = typeof(System.Windows.Controls.TreeViewItem); break;