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