14 references to TemplateProperty
PresentationFramework (14)
src\Framework\System\Windows\Controls\Control.cs (4)
59PropertyMetadata metadata = TemplateProperty.GetMetadata(DependencyObjectType); 63OnTemplateChanged(this, new DependencyPropertyChangedEventArgs(TemplateProperty, metadata, null, defaultValue)); 423set { SetValue(TemplateProperty, value); } 449StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
src\Framework\System\Windows\Controls\Page.cs (1)
519Control.TemplateProperty.AddOwner(
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2962Control.TemplateProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(template));
src\Framework\System\Windows\FrameworkElement.cs (1)
2099if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2323DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty;
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1755return System.Windows.Controls.Control.TemplateProperty;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
202Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 254Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
src\Framework\System\Windows\StyleHelper.cs (3)
450if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 453throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3134dp != Control.TemplateProperty &&