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