7 instantiations of ControlTemplate
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
116 Template = new ControlTemplate
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
89Template = new ControlTemplate { VisualTree = templateBorder };
PresentationFramework (5)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1159ControlTemplate template = new ControlTemplate(typeof(Separator));
System\Windows\Controls\ScrollViewer.cs (1)
2734template = new ControlTemplate(typeof(ScrollViewer));
System\Windows\Controls\Validation.cs (1)
595ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3004bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ControlTemplate(); };
System\Windows\Markup\KnownTypes.cs (1)
1188case KnownElements.ControlTemplate: o = new System.Windows.Controls.ControlTemplate(); break;
73 references to ControlTemplate
Microsoft.VisualStudio.LanguageServices.CSharp (3)
SemanticSearch\SemanticSearchToolWindowImpl.cs (3)
69private static readonly Lazy<ControlTemplate> s_buttonTemplate = new(CreateButtonTemplate); 218private static ControlTemplate CreateButtonTemplate() 226return (ControlTemplate)XamlReader.Parse($$$"""
PresentationFramework (64)
MS\Internal\Controls\TemplatedAdorner.cs (1)
39public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
System\Windows\Controls\Control.cs (11)
50ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 399typeof(ControlTemplate), 402(ControlTemplate) null, // default value 410public ControlTemplate Template 426set { _templateCache = (ControlTemplate) value; } 432OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 451protected virtual void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 764private ControlTemplate _templateCache;
System\Windows\Controls\DataGrid.cs (5)
676protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 917public ControlTemplate RowValidationErrorTemplate 919get { return (ControlTemplate)GetValue(RowValidationErrorTemplateProperty); } 927DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
System\Windows\Controls\DataGridRow.cs (5)
177protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 336public ControlTemplate ValidationErrorTemplate 338get { return (ControlTemplate)GetValue(ValidationErrorTemplateProperty); } 346DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1159ControlTemplate template = new ControlTemplate(typeof(Separator));
System\Windows\Controls\Page.cs (10)
64ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 507(ControlTemplate) null, // default value 515public ControlTemplate Template 531set { _templateCache = (ControlTemplate)value; } 537OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 557ControlTemplate oldTemplate, ControlTemplate newTemplate) 947private ControlTemplate _templateCache;
System\Windows\Controls\PasswordBox.cs (2)
462protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1021protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\ScrollViewer.cs (3)
2652private static ControlTemplate CreateDefaultControlTemplate() 2654ControlTemplate template = null; 2913ControlTemplate template = CreateDefaultControlTemplate();
System\Windows\Controls\StickyNote.cs (2)
530protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\Validation.cs (7)
172typeof(ControlTemplate), typeof(Validation), 182public static ControlTemplate GetErrorTemplate(DependencyObject element) 186return element.GetValue(ErrorTemplateProperty) as ControlTemplate; 191public static void SetErrorTemplate(DependencyObject element, ControlTemplate value) 458ControlTemplate validationTemplate = GetErrorTemplate(siteUIElement); 593private static ControlTemplate CreateDefaultErrorTemplate() 595ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
202case 108: t = () => typeof(ControlTemplate); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (11)
4351Type type = typeof(System.Windows.Controls.ControlTemplate); 4353this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 4359bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4360bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).VisualTree; }; 6285Type type = typeof(System.Windows.Controls.ControlTemplate); 6287this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6293bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).Triggers; }; 6338Type type = typeof(System.Windows.Controls.ControlTemplate); 6340this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6349bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).TargetType = (System.Type)value; }; 6350bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).TargetType; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3002typeof(System.Windows.Controls.ControlTemplate),
System\Windows\Markup\DependencyPropertyConverter.cs (1)
187XamlType controlTemplateXType = schemaContext.GetXamlType(typeof(ControlTemplate));
System\Windows\Markup\KnownTypes.cs (1)
5662case KnownElements.ControlTemplate: t = typeof(System.Windows.Controls.ControlTemplate); break;
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (2)
129protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
716protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (2)
73protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)