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