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