System\Windows\Controls\ContentPresenter.cs (54)
49DataTemplate template;
111DataTemplate defaultValue = (DataTemplate) metadata.DefaultValue;
261(DataTemplate)null,
268public DataTemplate ContentTemplate
270get { return (DataTemplate) GetValue(ContentControl.ContentTemplateProperty); }
281ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue);
289protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
527protected virtual DataTemplate ChooseTemplate()
529DataTemplate template = null;
559internal static DataTemplate AccessTextContentTemplate
564internal static DataTemplate StringContentTemplate
579set { _templateCache = (DataTemplate)value; }
597DataTemplate itemTemplate,
684static DataTemplate XmlNodeContentTemplate
689static DataTemplate UIElementContentTemplate
694static DataTemplate DefaultContentTemplate
704DataTemplate FormattingAccessTextContentTemplate
708DataTemplate template = AccessTextFormattingTemplateField.GetValue(this);
727DataTemplate FormattingStringContentTemplate
731DataTemplate template = StringFormattingTemplateField.GetValue(this);
750DataTemplate FormattingXmlNodeContentTemplate
754DataTemplate template = XMLFormattingTemplateField.GetValue(this);
781typeof(DataTemplate),
784(DataTemplate) null, // default value
792private DataTemplate Template
801OnTemplateChanged((DataTemplate)oldTemplate, (DataTemplate)newTemplate);
820protected virtual void OnTemplateChanged(DataTemplate oldTemplate, DataTemplate newTemplate)
833DataTemplate oldTemplate = Template;
834DataTemplate newTemplate = null;
886DataTemplate SelectTemplateForString(string s)
888DataTemplate template;
914DataTemplate template;
934DataTemplate SelectTemplateForXML()
1159public override DataTemplate SelectTemplate(object item, DependencyObject container)
1161DataTemplate template = null;
1166template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate));
1201private DataTemplate _templateCache;
1207private static DataTemplate s_AccessTextTemplate;
1208private static DataTemplate s_StringTemplate;
1209private static DataTemplate s_XmlNodeTemplate;
1210private static DataTemplate s_UIElementTemplate;
1211private static DataTemplate s_DefaultTemplate;
1213private static readonly UncommonField<DataTemplate> XMLFormattingTemplateField = new UncommonField<DataTemplate>();
1214private static readonly UncommonField<DataTemplate> StringFormattingTemplateField = new UncommonField<DataTemplate>();
1215private static readonly UncommonField<DataTemplate> AccessTextFormattingTemplateField = new UncommonField<DataTemplate>();
System\Windows\Controls\DataGridRow.cs (6)
310public DataTemplate HeaderTemplate
312get { return (DataTemplate)GetValue(HeaderTemplateProperty); }
320DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
359public DataTemplate DetailsTemplate
361get { return (DataTemplate)GetValue(DetailsTemplateProperty); }
369DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));