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