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)
1161ControlTemplate template = new ControlTemplate(typeof(Separator))
System\Windows\Controls\ScrollViewer.cs (1)
2735template = new ControlTemplate(typeof(ScrollViewer))
System\Windows\Controls\Validation.cs (1)
588ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3170DefaultConstructor = delegate () { return new System.Windows.Controls.ControlTemplate(); },
System\Windows\Markup\KnownTypes.cs (1)
1181case KnownElements.ControlTemplate: o = new System.Windows.Controls.ControlTemplate(); break;
74 references to ControlTemplate
Microsoft.VisualStudio.LanguageServices.CSharp (3)
SemanticSearch\SemanticSearchToolWindowImpl.cs (3)
69private static readonly Lazy<ControlTemplate> s_buttonTemplate = new(CreateButtonTemplate); 351private static ControlTemplate CreateButtonTemplate() 359return (ControlTemplate)XamlReader.Parse($$$"""
PresentationFramework (64)
MS\Internal\Controls\TemplatedAdorner.cs (1)
38public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
System\Windows\Controls\Control.cs (11)
49ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 398typeof(ControlTemplate), 401(ControlTemplate) null, // default value 409public ControlTemplate Template 425set { _templateCache = (ControlTemplate) value; } 431OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 450protected virtual void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 757private ControlTemplate _templateCache;
System\Windows\Controls\DataGrid.cs (5)
672protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 913public ControlTemplate RowValidationErrorTemplate 915get { return (ControlTemplate)GetValue(RowValidationErrorTemplateProperty); } 923DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
System\Windows\Controls\DataGridRow.cs (5)
176protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 335public ControlTemplate ValidationErrorTemplate 337get { return (ControlTemplate)GetValue(ValidationErrorTemplateProperty); } 345DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1161ControlTemplate template = new ControlTemplate(typeof(Separator))
System\Windows\Controls\Page.cs (10)
58ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 493(ControlTemplate) null, // default value 501public ControlTemplate Template 517set { _templateCache = (ControlTemplate)value; } 523OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 543ControlTemplate oldTemplate, ControlTemplate newTemplate) 930private ControlTemplate _templateCache;
System\Windows\Controls\PasswordBox.cs (2)
454protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1022protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\ScrollViewer.cs (3)
2649private static ControlTemplate CreateDefaultControlTemplate() 2651ControlTemplate template = null; 2916ControlTemplate template = CreateDefaultControlTemplate();
System\Windows\Controls\StickyNote.cs (2)
512protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\Validation.cs (7)
171typeof(ControlTemplate), typeof(Validation), 181public static ControlTemplate GetErrorTemplate(DependencyObject element) 185return element.GetValue(ErrorTemplateProperty) as ControlTemplate; 190public static void SetErrorTemplate(DependencyObject element, ControlTemplate value) 451ControlTemplate validationTemplate = GetErrorTemplate(siteUIElement); 586private static ControlTemplate CreateDefaultErrorTemplate() 588ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
201case 108: t = () => typeof(ControlTemplate); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (11)
4594Type type = typeof(System.Windows.Controls.ControlTemplate); 4596this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 4603SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.ControlTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }, 4604GetDelegate = delegate (object target) { return ((System.Windows.Controls.ControlTemplate)target).VisualTree; } 6742Type type = typeof(System.Windows.Controls.ControlTemplate); 6744this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6751GetDelegate = delegate (object target) { return ((System.Windows.Controls.ControlTemplate)target).Triggers; }, 6801Type type = typeof(System.Windows.Controls.ControlTemplate); 6803this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6813SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.ControlTemplate)target).TargetType = (System.Type)value; }, 6814GetDelegate = delegate (object target) { return ((System.Windows.Controls.ControlTemplate)target).TargetType; }
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3167typeof(System.Windows.Controls.ControlTemplate),
System\Windows\Markup\DependencyPropertyConverter.cs (1)
186XamlType controlTemplateXType = schemaContext.GetXamlType(typeof(ControlTemplate));
System\Windows\Markup\KnownTypes.cs (1)
5655case KnownElements.ControlTemplate: t = typeof(System.Windows.Controls.ControlTemplate); break;
PresentationFramework.Tests (1)
System\Windows\ResourceDictionaryTests.cs (1)
81_dictionary["CustomControlTemplate"].Should().BeOfType<ControlTemplate>();
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (2)
128protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
715protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (2)
72protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)