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