14 references to TemplateProperty
PresentationFramework (14)
System\Windows\Controls\Control.cs (4)
49PropertyMetadata metadata = TemplateProperty.GetMetadata(DependencyObjectType); 53OnTemplateChanged(this, new DependencyPropertyChangedEventArgs(TemplateProperty, metadata, null, defaultValue)); 413set { SetValue(TemplateProperty, value); } 439StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\Page.cs (1)
504Control.TemplateProperty.AddOwner(
System\Windows\Controls\ScrollViewer.cs (1)
2914Control.TemplateProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(template));
System\Windows\FrameworkElement.cs (1)
2089if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2329DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty;
System\Windows\Markup\KnownTypes.cs (1)
1754return System.Windows.Controls.Control.TemplateProperty;
System\Windows\Shell\WindowChromeWorker.cs (2)
141Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 183Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
System\Windows\StyleHelper.cs (3)
444if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 447throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3129dp != Control.TemplateProperty &&