5 instantiations of ControlTemplate
PresentationFramework (5)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1165ControlTemplate template = new ControlTemplate(typeof(Separator));
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2782template = new ControlTemplate(typeof(ScrollViewer));
src\Framework\System\Windows\Controls\Validation.cs (1)
598ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3002bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ControlTemplate(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1189case KnownElements.ControlTemplate: o = new System.Windows.Controls.ControlTemplate(); break;
77 references to ControlTemplate
PresentationFramework (64)
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
52public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplate) : base(adornedElement)
src\Framework\System\Windows\Controls\Control.cs (11)
60ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 409typeof(ControlTemplate), 412(ControlTemplate) null, // default value 420public ControlTemplate Template 436set { _templateCache = (ControlTemplate) value; } 442OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 461protected virtual void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 774private ControlTemplate _templateCache;
src\Framework\System\Windows\Controls\DataGrid.cs (5)
680protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 921public ControlTemplate RowValidationErrorTemplate 923get { return (ControlTemplate)GetValue(RowValidationErrorTemplateProperty); } 931DependencyProperty.Register("RowValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowPropertyChanged)));
src\Framework\System\Windows\Controls\DataGridRow.cs (5)
182protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate) 341public ControlTemplate ValidationErrorTemplate 343get { return (ControlTemplate)GetValue(ValidationErrorTemplateProperty); } 351DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1165ControlTemplate template = new ControlTemplate(typeof(Separator));
src\Framework\System\Windows\Controls\Page.cs (10)
79ControlTemplate defaultValue = (ControlTemplate) metadata.DefaultValue; 522(ControlTemplate) null, // default value 530public ControlTemplate Template 546set { _templateCache = (ControlTemplate)value; } 552OnTemplateChanged((ControlTemplate)oldTemplate, (ControlTemplate)newTemplate); 572ControlTemplate oldTemplate, ControlTemplate newTemplate) 963private ControlTemplate _templateCache;
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
486protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1053protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
2700private static ControlTemplate CreateDefaultControlTemplate() 2702ControlTemplate template = null; 2961ControlTemplate template = CreateDefaultControlTemplate();
src\Framework\System\Windows\Controls\StickyNote.cs (2)
556protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
src\Framework\System\Windows\Controls\Validation.cs (7)
190typeof(ControlTemplate), typeof(Validation), 200public static ControlTemplate GetErrorTemplate(DependencyObject element) 205return element.GetValue(ErrorTemplateProperty) as ControlTemplate; 210public static void SetErrorTemplate(DependencyObject element, ControlTemplate value) 456ControlTemplate validationTemplate = GetErrorTemplate(siteUIElement); 596private static ControlTemplate CreateDefaultErrorTemplate() 598ControlTemplate defaultTemplate = new ControlTemplate(typeof(Control));
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
200case 108: t = () => typeof(ControlTemplate); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (11)
4328Type type = typeof(System.Windows.Controls.ControlTemplate); 4330this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 4336bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4337bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).VisualTree; }; 6245Type type = typeof(System.Windows.Controls.ControlTemplate); 6247this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6253bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).Triggers; }; 6298Type type = typeof(System.Windows.Controls.ControlTemplate); 6300this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType 6309bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).TargetType = (System.Type)value; }; 6310bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).TargetType; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3000typeof(System.Windows.Controls.ControlTemplate),
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
204XamlType controlTemplateXType = schemaContext.GetXamlType(typeof(ControlTemplate));
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5652case KnownElements.ControlTemplate: t = typeof(System.Windows.Controls.ControlTemplate); break;
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (2)
924protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (10)
278typeof(ControlTemplate), 291public ControlTemplate InlineRowTemplate 293get { return (ControlTemplate)this.GetValue(PropertyContainer.InlineRowTemplateProperty); } 335typeof(ControlTemplate), 349public ControlTemplate ExtendedPopupRowTemplate 351get { return (ControlTemplate)this.GetValue(PropertyContainer.ExtendedPopupRowTemplateProperty); } 367typeof(ControlTemplate), 381public ControlTemplate ExtendedPinnedRowTemplate 383get { return (ControlTemplate)this.GetValue(PropertyContainer.ExtendedPinnedRowTemplateProperty); } 744ControlTemplate newTemplate = null;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
349ControlTemplate DefaultRowControlTemplate