4 instantiations of TreeViewItem
PresentationFramework (4)
System\Windows\Controls\TreeView.cs (1)
410return new TreeViewItem();
System\Windows\Controls\TreeViewItem.cs (1)
890return new TreeViewItem();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10600bamlType.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)
287&& e.OriginalSource is TreeViewItem { DataContext: DocumentSymbolDataViewModel symbolModel } item 316if (e.OriginalSource is TreeViewItem item)
PresentationFramework (91)
MS\Internal\Helper.cs (1)
1542TreeViewItem.IsExpandedProperty.GlobalIndex,
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
86TreeViewItem treeViewItem = owner.ItemContainerGenerator.ContainerFromIndex(i) as TreeViewItem; 168TreeViewItem selectedContainer = ((TreeView)Owner).SelectedContainer;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (17)
27public TreeViewItemAutomationPeer(TreeViewItem owner): base(owner) 69TreeViewItem owner = Owner as TreeViewItem; 103if (child is TreeViewItem) 280TreeViewItem treeViewItem = (TreeViewItem)Owner; 296TreeViewItem treeViewItem = (TreeViewItem)Owner; 310TreeViewItem treeViewItem = (TreeViewItem)Owner; 340((TreeViewItem)Owner).IsSelected = true; 348TreeView treeView = ((TreeViewItem)Owner).ParentTreeView; 354((TreeViewItem)Owner).IsSelected = true; 362((TreeViewItem)Owner).IsSelected = false; 372return ((TreeViewItem)Owner).IsSelected; 383ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl; 397((TreeViewItem)Owner).BringIntoView();
System\Windows\Controls\ItemsControl.cs (6)
1403TreeViewItem treeViewItem = container as TreeViewItem; 1428TreeViewItem treeViewItem = container as TreeViewItem; 3469TreeViewItem treeViewItem = element as TreeViewItem;
System\Windows\Controls\TreeView.cs (13)
28[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(TreeViewItem))] 190internal void ChangeSelection(object data, TreeViewItem container, bool selected) 200TreeViewItem oldContainer = _selectedContainer; // Saved for the automation event 342internal void HandleSelectionAndCollapsed(TreeViewItem collapsed) 347TreeViewItem current = _selectedContainer; 353TreeViewItem oldContainer = _selectedContainer; 401return item is TreeViewItem; 452TreeViewItem container; 463private bool GetFirstItem(out object item, out TreeViewItem container) 468container = ItemContainerGenerator.ContainerFromIndex(0) as TreeViewItem; 487internal TreeViewItem SelectedContainer 728protected virtual bool ExpandSubtree(TreeViewItem container) 880private TreeViewItem _selectedContainer;
System\Windows\Controls\TreeViewItem.cs (39)
28[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(TreeViewItem))] 35DefaultStyleKeyProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(typeof(TreeViewItem))); 36VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 37_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TreeViewItem)); 39KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue)); 40KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 41IsTabStopProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 43IsMouseOverPropertyKey.OverrideMetadata(typeof(TreeViewItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 44IsEnabledProperty.OverrideMetadata(typeof(TreeViewItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 45Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 47EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 48EventManager.RegisterClassHandler(typeof(TreeViewItem), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); 49AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 71typeof(TreeViewItem), 92TreeViewItem item = (TreeViewItem) d; 142typeof(TreeViewItem), 159TreeViewItem item = (TreeViewItem)d; 185public static readonly DependencyProperty IsSelectionActiveProperty = Selector.IsSelectionActiveProperty.AddOwner(typeof(TreeViewItem)); 208public static readonly RoutedEvent ExpandedEvent = EventManager.RegisterRoutedEvent("Expanded", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 240public static readonly RoutedEvent CollapsedEvent = EventManager.RegisterRoutedEvent("Collapsed", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 272public static readonly RoutedEvent SelectedEvent = EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 304public static readonly RoutedEvent UnselectedEvent = EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 451internal TreeViewItem ParentTreeViewItem 455return ParentItemsControl as TreeViewItem; 519TreeViewItem parent = ParentTreeViewItem; 723TreeViewItem item = predict as TreeViewItem; 743TreeViewItem tvi = (TreeViewItem)sender; 754((TreeViewItem)sender).HandleBringIntoView(e); 760TreeViewItem parent = ParentTreeViewItem; 881return item is TreeViewItem; 1008private static void ExpandRecursive(TreeViewItem item) 1041TreeViewItem subitem; 1047subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i); 1051subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\VirtualizingPanel.cs (1)
385TreeViewItem.IsVirtualizingPropagationHelper(parent, (DependencyObject)virtualizingChild);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
6564if (container is TreeViewItem)
System\Windows\Input\KeyboardNavigation.cs (4)
1952return (element is TreeViewItem) && IsFocusableInternal(element); 1964return (element is TreeViewItem) && IsFocusableInternal(element); 2468TreeViewItem tvi = element as TreeViewItem;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
783case 687: t = () => typeof(TreeViewItem); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
6047Type type = typeof(System.Windows.Controls.TreeViewItem); 6049this.GetXamlType(typeof(System.Windows.Controls.TreeViewItem)), // DeclaringType 6055bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeViewItem)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10598typeof(System.Windows.Controls.TreeViewItem),
System\Windows\Markup\KnownTypes.cs (1)
6241case KnownElements.TreeViewItem: t = typeof(System.Windows.Controls.TreeViewItem); break;