14 references to TemplateProperty
PresentationFramework (14)
System\Windows\Controls\Control.cs (4)
58PropertyMetadata metadata = TemplateProperty.GetMetadata(DependencyObjectType); 62OnTemplateChanged(this, new DependencyPropertyChangedEventArgs(TemplateProperty, metadata, null, defaultValue)); 422set { SetValue(TemplateProperty, value); } 448StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\Page.cs (1)
511Control.TemplateProperty.AddOwner(
System\Windows\Controls\ScrollViewer.cs (1)
2922Control.TemplateProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(template));
System\Windows\FrameworkElement.cs (1)
2100if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2331DependencyProperty dp = System.Windows.Controls.Control.TemplateProperty;
System\Windows\Markup\KnownTypes.cs (1)
1754return System.Windows.Controls.Control.TemplateProperty;
System\Windows\Shell\WindowChromeWorker.cs (2)
146Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 188Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
System\Windows\StyleHelper.cs (3)
450if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 453throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, Control.TemplateProperty.Name)); 3135dp != Control.TemplateProperty &&