1 type derived from TreeViewItem
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeViewItem.cs (1)
19class DesignerTreeViewItem : TreeViewItem, ITreeViewItemSelectionHandler
4 instantiations of TreeViewItem
PresentationFramework (4)
src\Framework\System\Windows\Controls\TreeView.cs (1)
411return new TreeViewItem();
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
889return new TreeViewItem();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10596bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TreeViewItem(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1626case KnownElements.TreeViewItem: o = new System.Windows.Controls.TreeViewItem(); break;
115 references to TreeViewItem
PresentationFramework (91)
src\Framework\MS\Internal\Helper.cs (1)
1558TreeViewItem.IsExpandedProperty.GlobalIndex,
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
83TreeViewItem treeViewItem = owner.ItemContainerGenerator.ContainerFromIndex(i) as TreeViewItem; 165TreeViewItem selectedContainer = ((TreeView)Owner).SelectedContainer;
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (17)
23public TreeViewItemAutomationPeer(TreeViewItem owner): base(owner) 65TreeViewItem owner = Owner as TreeViewItem; 99if (child is TreeViewItem) 281TreeViewItem treeViewItem = (TreeViewItem)Owner; 297TreeViewItem treeViewItem = (TreeViewItem)Owner; 311TreeViewItem treeViewItem = (TreeViewItem)Owner; 341((TreeViewItem)Owner).IsSelected = true; 349TreeView treeView = ((TreeViewItem)Owner).ParentTreeView; 355((TreeViewItem)Owner).IsSelected = true; 363((TreeViewItem)Owner).IsSelected = false; 373return ((TreeViewItem)Owner).IsSelected; 384ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl; 398((TreeViewItem)Owner).BringIntoView();
src\Framework\System\Windows\Controls\ItemsControl.cs (6)
1406TreeViewItem treeViewItem = container as TreeViewItem; 1431TreeViewItem treeViewItem = container as TreeViewItem; 3400TreeViewItem treeViewItem = element as TreeViewItem;
src\Framework\System\Windows\Controls\TreeView.cs (13)
29[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(TreeViewItem))] 191internal void ChangeSelection(object data, TreeViewItem container, bool selected) 201TreeViewItem oldContainer = _selectedContainer; // Saved for the automation event 343internal void HandleSelectionAndCollapsed(TreeViewItem collapsed) 348TreeViewItem current = _selectedContainer; 354TreeViewItem oldContainer = _selectedContainer; 402return item is TreeViewItem; 453TreeViewItem container; 464private bool GetFirstItem(out object item, out TreeViewItem container) 469container = ItemContainerGenerator.ContainerFromIndex(0) as TreeViewItem; 488internal TreeViewItem SelectedContainer 730protected virtual bool ExpandSubtree(TreeViewItem container) 882private TreeViewItem _selectedContainer;
src\Framework\System\Windows\Controls\TreeViewItem.cs (39)
29[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(TreeViewItem))] 36DefaultStyleKeyProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(typeof(TreeViewItem))); 37VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 38_dType = DependencyObjectType.FromSystemTypeInternal(typeof(TreeViewItem)); 40KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue)); 41KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 42IsTabStopProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 44IsMouseOverPropertyKey.OverrideMetadata(typeof(TreeViewItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 45IsEnabledProperty.OverrideMetadata(typeof(TreeViewItem), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 46Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged))); 48EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 49EventManager.RegisterClassHandler(typeof(TreeViewItem), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true); 50AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip)); 72typeof(TreeViewItem), 93TreeViewItem item = (TreeViewItem) d; 143typeof(TreeViewItem), 160TreeViewItem item = (TreeViewItem)d; 186public static readonly DependencyProperty IsSelectionActiveProperty = Selector.IsSelectionActiveProperty.AddOwner(typeof(TreeViewItem)); 209public static readonly RoutedEvent ExpandedEvent = EventManager.RegisterRoutedEvent("Expanded", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 241public static readonly RoutedEvent CollapsedEvent = EventManager.RegisterRoutedEvent("Collapsed", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 273public static readonly RoutedEvent SelectedEvent = EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 305public static readonly RoutedEvent UnselectedEvent = EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(TreeViewItem)); 452internal TreeViewItem ParentTreeViewItem 456return ParentItemsControl as TreeViewItem; 520TreeViewItem parent = ParentTreeViewItem; 724TreeViewItem item = predict as TreeViewItem; 744TreeViewItem tvi = (TreeViewItem)sender; 755((TreeViewItem)sender).HandleBringIntoView(e); 761TreeViewItem parent = ParentTreeViewItem; 880return item is TreeViewItem; 1008private static void ExpandRecursive(TreeViewItem item) 1041TreeViewItem subitem; 1047subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i); 1051subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i);
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (1)
431TreeViewItem.IsVirtualizingPropagationHelper(parent, (DependencyObject)virtualizingChild);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
6426if (container is TreeViewItem)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
2038return (element is TreeViewItem) && IsFocusableInternal(element); 2050return (element is TreeViewItem) && IsFocusableInternal(element); 2555TreeViewItem tvi = element as TreeViewItem;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
779case 687: t = () => typeof(TreeViewItem); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
6005Type type = typeof(System.Windows.Controls.TreeViewItem); 6007this.GetXamlType(typeof(System.Windows.Controls.TreeViewItem)), // DeclaringType 6013bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeViewItem)target).Items; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10594typeof(System.Windows.Controls.TreeViewItem),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6231case KnownElements.TreeViewItem: t = typeof(System.Windows.Controls.TreeViewItem); break;
System.Activities.Core.Presentation (9)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (9)
147var item = (TreeViewItem)sender; 164var item = sender as TreeViewItem; 178var item = sender as TreeViewItem; 190void Accept(TreeViewItem item) 202if (item.Tag is TreeViewItem) 204item = (TreeViewItem)item.Tag;
System.Activities.Presentation (15)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewContainerStyleSelector.cs (10)
35(null == baseStyle ? new Style(typeof(TreeViewItem)) : new Style(typeof(TreeViewItem), baseStyle)); 49toolItemBinding.Path = new PropertyPath(TreeViewItem.HeaderProperty); 56visibilitySetter.Property = TreeViewItem.VisibilityProperty; 76Setter enableSetter = new Setter(TreeViewItem.IsEnabledProperty, false); 79enableTrigger.Property = TreeViewItem.VisibilityProperty; 85mouseMoveSetter.Event = TreeViewItem.MouseMoveEvent; 90mouseDoubleClickSetter.Event = TreeViewItem.MouseDoubleClickEvent; 106(null == baseStyle ? new Style(typeof(TreeViewItem)) : new Style(typeof(TreeViewItem), baseStyle));
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (5)
298TypeNode entry = ((TreeViewItem)sender).Header as TypeNode; 327TreeViewItem item = sender as TreeViewItem; 343TreeViewItem item = sender as TreeViewItem;