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