5 instantiations of ControlTemplate
PresentationFramework (5)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1162ControlTemplate template = new ControlTemplate(typeof(Separator));
System\Windows\Controls\ScrollViewer.cs (1)
2742template = new ControlTemplate(typeof(ScrollViewer));
System\Windows\Controls\Validation.cs (1)
603ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3006bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ControlTemplate(); };
System\Windows\Markup\KnownTypes.cs (1)
1188case KnownElements.ControlTemplate: o = new System.Windows.Controls.ControlTemplate(); break;
70 references to ControlTemplate
PresentationFramework (64)
MS\Internal\Controls\TemplatedAdorner.cs (1)
46public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
System\Windows\Controls\Control.cs (11)
59ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 408typeof(ControlTemplate), 411(ControlTemplate) null, // default value 419public ControlTemplate Template 435set { _templateCache = (ControlTemplate) value; } 441OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 460protected virtual void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 773private ControlTemplate _templateCache;
System\Windows\Controls\DataGrid.cs (5)
679protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 920public ControlTemplate RowValidationErrorTemplate 922get { return (ControlTemplate)GetValue(RowValidationErrorTemplateProperty); } 930DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
System\Windows\Controls\DataGridRow.cs (5)
181protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 340public ControlTemplate ValidationErrorTemplate 342get { return (ControlTemplate)GetValue(ValidationErrorTemplateProperty); } 350DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1162ControlTemplate template = new ControlTemplate(typeof(Separator));
System\Windows\Controls\Page.cs (10)
71ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 514(ControlTemplate) null, // default value 522public ControlTemplate Template 538set { _templateCache = (ControlTemplate)value; } 544OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 564ControlTemplate oldTemplate, ControlTemplate newTemplate) 954private ControlTemplate _templateCache;
System\Windows\Controls\PasswordBox.cs (2)
470protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1030protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\ScrollViewer.cs (3)
2660private static ControlTemplate CreateDefaultControlTemplate() 2662ControlTemplate template = null; 2921ControlTemplate template = CreateDefaultControlTemplate();
System\Windows\Controls\StickyNote.cs (2)
546protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System\Windows\Controls\Validation.cs (7)
180typeof(ControlTemplate), typeof(Validation), 190public static ControlTemplate GetErrorTemplate(DependencyObject element) 194return element.GetValue(ErrorTemplateProperty) as ControlTemplate; 199public static void SetErrorTemplate(DependencyObject element, ControlTemplate value) 466ControlTemplate validationTemplate = GetErrorTemplate(siteUIElement); 601private static ControlTemplate CreateDefaultErrorTemplate() 603ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
204case 108: t = () => typeof(ControlTemplate); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (11)
4353Type type = typeof(System.Windows.Controls.ControlTemplate); 4355this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 4361bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4362bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).VisualTree; }; 6287Type type = typeof(System.Windows.Controls.ControlTemplate); 6289this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6295bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).Triggers; }; 6340Type type = typeof(System.Windows.Controls.ControlTemplate); 6342this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6351bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).TargetType = (System.Type)value; }; 6352bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).TargetType; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3004typeof(System.Windows.Controls.ControlTemplate),
System\Windows\Markup\DependencyPropertyConverter.cs (1)
196XamlType 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)
133protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
719protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (2)
75protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)