34 references to ContentTemplateProperty
PresentationFramework (28)
System\Windows\Controls\ContentControl.cs (5)
145
SetValue(
ContentTemplateProperty
, itemTemplate);
358
get { return (DataTemplate) GetValue(
ContentTemplateProperty
); }
359
set { SetValue(
ContentTemplateProperty
, value); }
378
Helper.CheckTemplateAndTemplateSelector("Content",
ContentTemplateProperty
, ContentTemplateSelectorProperty, this);
427
Helper.CheckTemplateAndTemplateSelector("Content",
ContentTemplateProperty
, ContentTemplateSelectorProperty, this);
System\Windows\Controls\ContentPresenter.cs (3)
258
ContentControl.
ContentTemplateProperty
.AddOwner(
270
get { return (DataTemplate) GetValue(ContentControl.
ContentTemplateProperty
); }
271
set { SetValue(ContentControl.
ContentTemplateProperty
, value); }
System\Windows\Controls\GridViewColumnHeader.cs (2)
71
ContentTemplateProperty
.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged)));
594
else if (dp == GridViewColumnHeader.
ContentTemplateProperty
)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1220
object template = srcHeader.ReadLocalValue(GridViewColumnHeader.
ContentTemplateProperty
);
1749
GridViewColumnHeader.
ContentTemplateProperty
,
System\Windows\Controls\GridViewRowPresenter.cs (1)
336
cp.ClearValue(ContentControl.
ContentTemplateProperty
);
System\Windows\Controls\GroupItem.cs (1)
210
if (!HasNonDefaultValue(
ContentTemplateProperty
))
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (5)
35
ContentTemplateProperty
.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceContentTemplate));
114
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
418
else if (e.Property == DataGridColumn.HeaderTemplateProperty || e.Property ==
ContentTemplateProperty
)
420
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
639
ContentTemplateProperty
,
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
126
ContentTemplateProperty
.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContentTemplate));
238
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
272
else if (e.Property == DataGrid.RowHeaderTemplateProperty || e.Property == DataGridRow.HeaderTemplateProperty || e.Property ==
ContentTemplateProperty
)
274
DataGridHelper.TransferProperty(this,
ContentTemplateProperty
);
345
ContentTemplateProperty
,
System\Windows\Controls\ScrollViewer.cs (2)
2714
content.SetValue(
ContentTemplateProperty
, new TemplateBindingExtension(
ContentTemplateProperty
));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
1959
DependencyProperty dp = System.Windows.Controls.ContentControl.
ContentTemplateProperty
;
System\Windows\Markup\KnownTypes.cs (1)
1710
return System.Windows.Controls.ContentControl.
ContentTemplateProperty
;
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1675
new PropertyAndTransferMode () { Property = ContentControl.
ContentTemplateProperty
, Mode = TransferMode.AlwaysTransfer },
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
44
ContentTemplateProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceContentTemplate));
413
PropertyHelper.TransferProperty(this,
ContentTemplateProperty
);
429
else if (e.Property ==
ContentTemplateProperty
|| e.Property == RibbonTab.HeaderTemplateProperty || e.Property == Ribbon.TabHeaderTemplateProperty)
431
PropertyHelper.TransferProperty(this,
ContentTemplateProperty
);
579
ContentTemplateProperty
,