34 references to ContentTemplateProperty
PresentationFramework (28)
System\Windows\Controls\ContentControl.cs (5)
136
SetValue(
ContentTemplateProperty
, itemTemplate);
349
get { return (DataTemplate) GetValue(
ContentTemplateProperty
); }
350
set { SetValue(
ContentTemplateProperty
, value); }
369
Helper.CheckTemplateAndTemplateSelector("Content",
ContentTemplateProperty
, ContentTemplateSelectorProperty, this);
418
Helper.CheckTemplateAndTemplateSelector("Content",
ContentTemplateProperty
, ContentTemplateSelectorProperty, this);
System\Windows\Controls\ContentPresenter.cs (3)
251
ContentControl.
ContentTemplateProperty
.AddOwner(
263
get { return (DataTemplate) GetValue(ContentControl.
ContentTemplateProperty
); }
264
set { SetValue(ContentControl.
ContentTemplateProperty
, value); }
System\Windows\Controls\GridViewColumnHeader.cs (2)
67
ContentTemplateProperty
.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged)));
590
else if (dp == GridViewColumnHeader.
ContentTemplateProperty
)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1225
object template = srcHeader.ReadLocalValue(GridViewColumnHeader.
ContentTemplateProperty
);
1754
GridViewColumnHeader.
ContentTemplateProperty
,
System\Windows\Controls\GridViewRowPresenter.cs (1)
332
cp.ClearValue(ContentControl.
ContentTemplateProperty
);
System\Windows\Controls\GroupItem.cs (1)
202
if (!HasNonDefaultValue(
ContentTemplateProperty
))
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (5)
30
ContentTemplateProperty
.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceContentTemplate));
109
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
413
else if (e.Property == DataGridColumn.HeaderTemplateProperty || e.Property ==
ContentTemplateProperty
)
415
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
634
ContentTemplateProperty
,
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
121
ContentTemplateProperty
.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContentTemplate));
233
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
267
else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property ==
ContentTemplateProperty
)
269
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
340
ContentTemplateProperty
,
System\Windows\Controls\ScrollViewer.cs (2)
2714
content.SetValue(
ContentTemplateProperty
, new TemplateBindingExtension(
ContentTemplateProperty
));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
1979
DependencyProperty dp = System.Windows.Controls.ContentControl.
ContentTemplateProperty
;
System\Windows\Markup\KnownTypes.cs (1)
1704
return System.Windows.Controls.ContentControl.
ContentTemplateProperty
;
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1674
new PropertyAndTransferMode () { Property = ContentControl.
ContentTemplateProperty
, Mode = TransferMode.AlwaysTransfer },
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
42
ContentTemplateProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceContentTemplate));
411
PropertyHelper.TransferProperty(this,
ContentTemplateProperty
);
427
else if (e.Property ==
ContentTemplateProperty
|| e.Property == RibbonTab.HeaderTemplateProperty || e.Property == Ribbon.TabHeaderTemplateProperty)
429
PropertyHelper.TransferProperty(this,
ContentTemplateProperty
);
577
ContentTemplateProperty
,