System\Windows\Controls\ContentPresenter.cs (54)
40DataTemplate template;
104DataTemplate defaultValue = (DataTemplate) metadata.DefaultValue;
254(DataTemplate)null,
261public DataTemplate ContentTemplate
263get { return (DataTemplate) GetValue(ContentControl.ContentTemplateProperty); }
274ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue);
282protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
520protected virtual DataTemplate ChooseTemplate()
522DataTemplate template = null;
552internal static DataTemplate AccessTextContentTemplate
557internal static DataTemplate StringContentTemplate
572set { _templateCache = (DataTemplate)value; }
590DataTemplate itemTemplate,
677static DataTemplate XmlNodeContentTemplate
682static DataTemplate UIElementContentTemplate
687static DataTemplate DefaultContentTemplate
697DataTemplate FormattingAccessTextContentTemplate
701DataTemplate template = AccessTextFormattingTemplateField.GetValue(this);
724DataTemplate FormattingStringContentTemplate
728DataTemplate template = StringFormattingTemplateField.GetValue(this);
751DataTemplate FormattingXmlNodeContentTemplate
755DataTemplate template = XMLFormattingTemplateField.GetValue(this);
786typeof(DataTemplate),
789(DataTemplate) null, // default value
797private DataTemplate Template
806OnTemplateChanged((DataTemplate)oldTemplate, (DataTemplate)newTemplate);
825protected virtual void OnTemplateChanged(DataTemplate oldTemplate, DataTemplate newTemplate)
838DataTemplate oldTemplate = Template;
839DataTemplate newTemplate = null;
891DataTemplate SelectTemplateForString(string s)
893DataTemplate template;
919DataTemplate template;
939DataTemplate SelectTemplateForXML()
1164public override DataTemplate SelectTemplate(object item, DependencyObject container)
1166DataTemplate template = null;
1171template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate));
1206private DataTemplate _templateCache;
1212private static DataTemplate s_AccessTextTemplate;
1213private static DataTemplate s_StringTemplate;
1214private static DataTemplate s_XmlNodeTemplate;
1215private static DataTemplate s_UIElementTemplate;
1216private static DataTemplate s_DefaultTemplate;
1218private static readonly UncommonField<DataTemplate> XMLFormattingTemplateField = new UncommonField<DataTemplate>();
1219private static readonly UncommonField<DataTemplate> StringFormattingTemplateField = new UncommonField<DataTemplate>();
1220private static readonly UncommonField<DataTemplate> AccessTextFormattingTemplateField = new UncommonField<DataTemplate>();
System\Windows\Controls\DataGridRow.cs (6)
306public DataTemplate HeaderTemplate
308get { return (DataTemplate)GetValue(HeaderTemplateProperty); }
316DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
355public DataTemplate DetailsTemplate
357get { return (DataTemplate)GetValue(DetailsTemplateProperty); }
365DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (14)
4614Type type = typeof(System.Windows.DataTemplate);
4616this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
4623SetDelegate = delegate (object target, object value) { ((System.Windows.DataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; },
4624GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).VisualTree; }
6762Type type = typeof(System.Windows.DataTemplate);
6764this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
6771GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).Triggers; },
6781Type type = typeof(System.Windows.DataTemplate);
6783this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
6792GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).DataTemplateKey; },
8713Type type = typeof(System.Windows.DataTemplate);
8715this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
8725SetDelegate = delegate (object target, object value) { ((System.Windows.DataTemplate)target).DataType = (System.Object)value; },
8726GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).DataType; }