4 instantiations of TreeViewItem
PresentationFramework (4)
System\Windows\Controls\TreeView.cs (1)
404
return new
TreeViewItem
();
System\Windows\Controls\TreeViewItem.cs (1)
871
return new
TreeViewItem
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11768
DefaultConstructor = delegate () { return new System.Windows.Controls.
TreeViewItem
(); },
System\Windows\Markup\KnownTypes.cs (1)
1618
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)
1526
TreeViewItem
.IsExpandedProperty.GlobalIndex,
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
72
TreeViewItem
treeViewItem = owner.ItemContainerGenerator.ContainerFromIndex(i) as
TreeViewItem
;
154
TreeViewItem
selectedContainer = ((TreeView)Owner).SelectedContainer;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (17)
14
public TreeViewItemAutomationPeer(
TreeViewItem
owner): base(owner)
56
TreeViewItem
owner = Owner as
TreeViewItem
;
90
if (child is
TreeViewItem
)
264
TreeViewItem
treeViewItem = (
TreeViewItem
)Owner;
280
TreeViewItem
treeViewItem = (
TreeViewItem
)Owner;
294
TreeViewItem
treeViewItem = (
TreeViewItem
)Owner;
324
((
TreeViewItem
)Owner).IsSelected = true;
332
TreeView treeView = ((
TreeViewItem
)Owner).ParentTreeView;
338
((
TreeViewItem
)Owner).IsSelected = true;
346
((
TreeViewItem
)Owner).IsSelected = false;
356
return ((
TreeViewItem
)Owner).IsSelected;
367
ItemsControl parent = ((
TreeViewItem
)Owner).ParentItemsControl;
381
((
TreeViewItem
)Owner).BringIntoView();
System\Windows\Controls\ItemsControl.cs (6)
1381
TreeViewItem
treeViewItem = container as
TreeViewItem
;
1403
TreeViewItem
treeViewItem = container as
TreeViewItem
;
3429
TreeViewItem
treeViewItem = element as
TreeViewItem
;
System\Windows\Controls\TreeView.cs (13)
22
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(
TreeViewItem
))]
184
internal void ChangeSelection(object data,
TreeViewItem
container, bool selected)
194
TreeViewItem
oldContainer = _selectedContainer; // Saved for the automation event
336
internal void HandleSelectionAndCollapsed(
TreeViewItem
collapsed)
341
TreeViewItem
current = _selectedContainer;
347
TreeViewItem
oldContainer = _selectedContainer;
395
return item is
TreeViewItem
;
446
TreeViewItem
container;
457
private bool GetFirstItem(out object item, out
TreeViewItem
container)
462
container = ItemContainerGenerator.ContainerFromIndex(0) as
TreeViewItem
;
481
internal
TreeViewItem
SelectedContainer
720
protected virtual bool ExpandSubtree(
TreeViewItem
container)
872
private
TreeViewItem
_selectedContainer;
System\Windows\Controls\TreeViewItem.cs (39)
23
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(
TreeViewItem
))]
30
DefaultStyleKeyProperty.OverrideMetadata(typeof(
TreeViewItem
), new FrameworkPropertyMetadata(typeof(
TreeViewItem
)));
31
VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(typeof(
TreeViewItem
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
32
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
TreeViewItem
));
34
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
TreeViewItem
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue));
35
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
TreeViewItem
), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
36
IsTabStopProperty.OverrideMetadata(typeof(
TreeViewItem
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
38
IsMouseOverPropertyKey.OverrideMetadata(typeof(
TreeViewItem
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
39
IsEnabledProperty.OverrideMetadata(typeof(
TreeViewItem
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
40
Selector.IsSelectionActivePropertyKey.OverrideMetadata(typeof(
TreeViewItem
), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
42
EventManager.RegisterClassHandler(typeof(
TreeViewItem
), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView));
43
EventManager.RegisterClassHandler(typeof(
TreeViewItem
), Mouse.MouseDownEvent, new MouseButtonEventHandler(OnMouseButtonDown), true);
44
AutomationProperties.IsOffscreenBehaviorProperty.OverrideMetadata(typeof(
TreeViewItem
), new FrameworkPropertyMetadata(IsOffscreenBehavior.FromClip));
66
typeof(
TreeViewItem
),
87
TreeViewItem
item = (
TreeViewItem
) d;
134
typeof(
TreeViewItem
),
151
TreeViewItem
item = (
TreeViewItem
)d;
174
public static readonly DependencyProperty IsSelectionActiveProperty = Selector.IsSelectionActiveProperty.AddOwner(typeof(
TreeViewItem
));
197
public static readonly RoutedEvent ExpandedEvent = EventManager.RegisterRoutedEvent("Expanded", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
TreeViewItem
));
229
public static readonly RoutedEvent CollapsedEvent = EventManager.RegisterRoutedEvent("Collapsed", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
TreeViewItem
));
261
public static readonly RoutedEvent SelectedEvent = EventManager.RegisterRoutedEvent("Selected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
TreeViewItem
));
293
public static readonly RoutedEvent UnselectedEvent = EventManager.RegisterRoutedEvent("Unselected", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
TreeViewItem
));
440
internal
TreeViewItem
ParentTreeViewItem
444
return ParentItemsControl as
TreeViewItem
;
508
TreeViewItem
parent = ParentTreeViewItem;
710
TreeViewItem
item = predict as
TreeViewItem
;
730
TreeViewItem
tvi = (
TreeViewItem
)sender;
738
((
TreeViewItem
)sender).HandleBringIntoView(e);
744
TreeViewItem
parent = ParentTreeViewItem;
862
return item is
TreeViewItem
;
986
private static void ExpandRecursive(
TreeViewItem
item)
1019
TreeViewItem
subitem;
1025
subitem = (
TreeViewItem
)item.ItemContainerGenerator.ContainerFromIndex(i);
1029
subitem = (
TreeViewItem
)item.ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\VirtualizingPanel.cs (1)
375
TreeViewItem
.IsVirtualizingPropagationHelper(parent, (DependencyObject)virtualizingChild);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
6535
if (container is
TreeViewItem
)
System\Windows\Input\KeyboardNavigation.cs (4)
1940
return (element is
TreeViewItem
) && IsFocusableInternal(element);
1952
return (element is
TreeViewItem
) && IsFocusableInternal(element);
2456
TreeViewItem
tvi = element as
TreeViewItem
;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
780
case 687: t = () => typeof(
TreeViewItem
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
6474
Type type = typeof(System.Windows.Controls.
TreeViewItem
);
6476
this.GetXamlType(typeof(System.Windows.Controls.
TreeViewItem
)), // DeclaringType
6483
GetDelegate = delegate (object target) { return ((System.Windows.Controls.
TreeViewItem
)target).Items; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11765
typeof(System.Windows.Controls.
TreeViewItem
),
System\Windows\Markup\KnownTypes.cs (1)
6234
case KnownElements.TreeViewItem: t = typeof(System.Windows.Controls.
TreeViewItem
); break;