21 writes to VisualTree
PresentationFramework (17)
src\Framework\MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
53_xmlNodeContentTemplate.VisualTree = text; 68_clrNodeContentTemplate.VisualTree = text;
src\Framework\System\Windows\Controls\ContentPresenter.cs (6)
59template.VisualTree = text; 67template.VisualTree = text; 77template.VisualTree = text; 720template.VisualTree = text; 743template.VisualTree = text; 767template.VisualTree = text;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1166template.VisualTree = border;
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (1)
47VisualTree = root;
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2783template.VisualTree = grid;
src\Framework\System\Windows\Controls\Validation.cs (1)
612defaultTemplate.VisualTree = border;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (5)
4336bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4353bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4624bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4764bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.HierarchicalDataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4952bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ItemsPanelTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; };
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
693this.flagEditorTemplate.VisualTree = new FrameworkElementFactory(typeof(FlagEditor));
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
746dynamicExpressionTemplate.VisualTree = contentPresenterFactory;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
942template.VisualTree = new FrameworkElementFactory(typeof(NoContextMenuGrid));
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
1149DataTemplate dt = new DataTemplate() { VisualTree = feFactory };
27 references to VisualTree
PresentationFramework (24)
src\Framework\System\Windows\BroadcastEventHelper.cs (1)
514FrameworkElementFactory fefTree = templatedParentTemplate.VisualTree;
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (1)
131else if ((root = this.VisualTree) != null)
src\Framework\System\Windows\Controls\ItemsPresenter.cs (2)
318if( Template.VisualTree != null ) 320type = Template.VisualTree.Type;
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
490if (oldTemplate!=null && newTemplate!= null && oldTemplate.VisualTree != newTemplate.VisualTree)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1057if (oldTemplate!=null && newTemplate!= null && oldTemplate.VisualTree != newTemplate.VisualTree)
src\Framework\System\Windows\FrameworkContentElement.cs (1)
679frameworkTemplate.VisualTree,
src\Framework\System\Windows\FrameworkElement.cs (1)
1956frameworkTemplate.VisualTree,
src\Framework\System\Windows\FrameworkTemplate.cs (4)
124return HasContent || VisualTree != null; 557if (VisualTree != null) 559FrameworkObject frameworkObject = VisualTree.InstantiateUnoptimizedTree(); 1213child, templateChildIndex, ref this.ChildRecordFromChildIndex, false, this.VisualTree);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (5)
4337bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).VisualTree; }; 4354bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).VisualTree; }; 4625bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkTemplate)target).VisualTree; }; 4765bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.HierarchicalDataTemplate)target).VisualTree; }; 4953bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsPanelTemplate)target).VisualTree; };
src\Framework\System\Windows\StyleHelper.cs (5)
2297oldFrameworkTemplate.VisualTree); 3385oldFactory = (oldFrameworkTemplate != null) ? oldFrameworkTemplate.VisualTree : null; 3386newFactory = (newFrameworkTemplate != null) ? newFrameworkTemplate.VisualTree : null; 3428&& newFrameworkTemplate.VisualTree == null 3934template.VisualTree);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (2)
694this.flagEditorTemplate.VisualTree.SetValue(FlagEditor.FlagTypeProperty, propertyType); 699this.flagEditorTemplate.VisualTree.SetBinding(FlagEditor.TextProperty, binding);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
943template.VisualTree.AppendChild(contentControlFactory);