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