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