4 types derived from DataTemplate
PresentationFramework (4)
System\Windows\Controls\ContentPresenter.cs (2)
1000private class UseContentTemplate : DataTemplate 1031private class DefaultTemplate : DataTemplate
System\Windows\Controls\ItemContainerTemplate.cs (1)
14public class ItemContainerTemplate : DataTemplate
System\Windows\HierarchicalDataTemplate.cs (1)
20public class HierarchicalDataTemplate : DataTemplate
11 instantiations of DataTemplate
PresentationFramework (10)
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
42_xmlNodeContentTemplate = new DataTemplate(); 59_clrNodeContentTemplate = new DataTemplate();
System\Windows\Controls\ContentPresenter.cs (6)
45template = new DataTemplate(); 53template = new DataTemplate(); 61template = new DataTemplate(); 712template = new DataTemplate 739template = new DataTemplate 767template = new DataTemplate
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3337DefaultConstructor = delegate () { return new System.Windows.DataTemplate(); },
System\Windows\Markup\KnownTypes.cs (1)
1190case KnownElements.DataTemplate: o = new System.Windows.DataTemplate(); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
60template = new DataTemplate();
248 references to DataTemplate
Microsoft.VisualStudio.LanguageServices (5)
InheritanceMargin\MarginGlyph\MenuItemContainerTemplateSelector.cs (5)
16public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 21return (DataTemplate)parentItemsControl.FindResource("HeaderMenuItemTemplate"); 27return (DataTemplate)parentItemsControl.FindResource("DisambiguatingTargetMenuItemTemplate"); 33return (DataTemplate)parentItemsControl.FindResource("TargetMenuItemTemplate"); 39return (DataTemplate)parentItemsControl.FindResource("MemberMenuItemTemplate");
PresentationFramework (181)
MS\Internal\Data\DisplayMemberTemplateSelector.cs (4)
31/// Override this method to return an app specific <seealso cref="DataTemplate"/>. 36public override DataTemplate SelectTemplate(object item, DependencyObject container) 76private DataTemplate _xmlNodeContentTemplate; 77private DataTemplate _clrNodeContentTemplate;
System\Windows\Controls\ComboBox.cs (5)
411DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplate", typeof(DataTemplate), typeof(ComboBox), 412new FrameworkPropertyMetadata((DataTemplate)null)); 422public DataTemplate SelectionBoxItemTemplate 424get { return (DataTemplate) GetValue(SelectionBoxItemTemplateProperty); } 864DataTemplate itemTemplate = ItemTemplate;
System\Windows\Controls\ContentControl.cs (9)
120DataTemplate itemTemplate, 336typeof(DataTemplate), 339(DataTemplate) null, 347public DataTemplate ContentTemplate 349get { return (DataTemplate) GetValue(ContentTemplateProperty); } 359ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 367protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
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\DataGrid.cs (6)
1426public DataTemplate RowHeaderTemplate 1428get { return (DataTemplate)GetValue(RowHeaderTemplateProperty); } 1436DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 3921public DataTemplate RowDetailsTemplate 3923get { return (DataTemplate)GetValue(RowDetailsTemplateProperty); } 3931DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
System\Windows\Controls\DataGridColumn.cs (3)
80public DataTemplate HeaderTemplate 82get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 90DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged));
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\Controls\DataGridTemplateColumn.cs (8)
56public DataTemplate CellTemplate 58get { return (DataTemplate)GetValue(CellTemplateProperty); } 67typeof(DataTemplate), 93public DataTemplate CellEditingTemplate 95get { return (DataTemplate)GetValue(CellEditingTemplateProperty); } 104typeof(DataTemplate), 132private void ChooseCellTemplateAndSelector(bool isEditing, out DataTemplate template, out DataTemplateSelector templateSelector) 162DataTemplate template;
System\Windows\Controls\DataTemplateSelector.cs (2)
28/// Override this method to return an app specific <seealso cref="DataTemplate"/>. 33public virtual DataTemplate SelectTemplate(object item, DependencyObject container)
System\Windows\Controls\GridView.cs (3)
272typeof(DataTemplate), 282public DataTemplate ColumnHeaderTemplate 284get { return (DataTemplate)GetValue(ColumnHeaderTemplateProperty); }
System\Windows\Controls\GridViewColumn.cs (6)
166typeof(DataTemplate), 175public DataTemplate HeaderTemplate 177get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 317typeof(DataTemplate), 326public DataTemplate CellTemplate 328get { return (DataTemplate)GetValue(CellTemplateProperty); }
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
83public DataTemplate ColumnHeaderTemplate 85get { return (DataTemplate)GetValue(ColumnHeaderTemplateProperty); }
System\Windows\Controls\GridViewRowPresenter.cs (2)
329DataTemplate dt; 600DataTemplate dt;
System\Windows\Controls\GroupStyle.cs (2)
136public DataTemplate HeaderTemplate 226DataTemplate _headerTemplate;
System\Windows\Controls\HeaderedContentControl.cs (9)
133typeof(DataTemplate), 136(DataTemplate) null, 143public DataTemplate HeaderTemplate 145get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 155ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 163protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate) 321DataTemplate itemTemplate,
System\Windows\Controls\HeaderedItemsControl.cs (11)
129(DataTemplate) null, 136public DataTemplate HeaderTemplate 138get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 148ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 156protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate) 277DataTemplate itemTemplate = parentItemsControl.ItemTemplate; 403DataTemplate headerTemplate = HeaderTemplate; 415headerTemplate = (DataTemplate)FindTemplateResourceInternal(this, item, typeof(DataTemplate));
System\Windows\Controls\ItemContainerTemplateSelector.cs (3)
17public virtual DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 25public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 28return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
System\Windows\Controls\ItemsControl.cs (9)
449typeof(DataTemplate), 452(DataTemplate) null, 459public DataTemplate ItemTemplate 461get { return (DataTemplate) GetValue(ItemTemplateProperty); } 472((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 480protected virtual void OnItemTemplateChanged(DataTemplate oldItemTemplate, DataTemplate newItemTemplate) 1746DataTemplate itemTemplate = parentItemsControl.ItemTemplate;
System\Windows\Controls\MenuItem.cs (1)
2099DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
System\Windows\Controls\Primitives\CalendarItem.cs (3)
16[TemplatePart(Name = CalendarItem.ElementDayTitleTemplate, Type = typeof(DataTemplate))] 45private DataTemplate _dayTitleTemplate; 177_dayTitleTemplate = Template.Resources[DayTitleTemplateResourceKey] as DataTemplate;
System\Windows\Controls\Primitives\MenuBase.cs (1)
495DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
System\Windows\Controls\Primitives\StatusBar.cs (1)
114DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
System\Windows\Controls\TabControl.cs (8)
132private static readonly DependencyPropertyKey SelectedContentTemplatePropertyKey = DependencyProperty.RegisterReadOnly("SelectedContentTemplate", typeof(DataTemplate), typeof(TabControl), new FrameworkPropertyMetadata((DataTemplate)null)); 149public DataTemplate SelectedContentTemplate 153return (DataTemplate)GetValue(SelectedContentTemplateProperty); 218public static readonly DependencyProperty ContentTemplateProperty = DependencyProperty.Register("ContentTemplate", typeof(DataTemplate), typeof(TabControl), new FrameworkPropertyMetadata((DataTemplate)null)); 226public DataTemplate ContentTemplate 230return (DataTemplate)GetValue(ContentTemplateProperty);
System\Windows\Controls\TabItem.cs (2)
414protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
System\Windows\FrameworkElement.cs (1)
1430else if (templateType == typeof(DataTemplate))
System\Windows\HierarchicalDataTemplate.cs (2)
76public DataTemplate ItemTemplate 237private DataTemplate _itemTemplate;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
214case 120: t = () => typeof(DataTemplate); break;
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; }
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3334typeof(System.Windows.DataTemplate),
System\Windows\Markup\DependencyPropertyConverter.cs (1)
186XamlType dataTemplateXType = schemaContext.GetXamlType(typeof(DataTemplate));
System\Windows\Markup\KnownTypes.cs (1)
5668case KnownElements.DataTemplate: t = typeof(System.Windows.DataTemplate); break;
System.Windows.Controls.Ribbon (62)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (12)
283public DataTemplate HelpPaneContentTemplate 285get { return (DataTemplate)GetValue(HelpPaneContentTemplateProperty); } 292typeof(DataTemplate), 372public DataTemplate TitleTemplate 374get { return (DataTemplate)GetValue(TitleTemplateProperty); } 381typeof(DataTemplate), 440public DataTemplate ContextualTabGroupHeaderTemplate 442get { return (DataTemplate)GetValue(ContextualTabGroupHeaderTemplateProperty); } 447DependencyProperty.Register("ContextualTabGroupHeaderTemplate", typeof(DataTemplate), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyContextualTabGroupPropertyChanged))); 623public DataTemplate TabHeaderTemplate 625get { return (DataTemplate)GetValue(TabHeaderTemplateProperty); } 631DependencyProperty.Register("TabHeaderTemplate", typeof(DataTemplate), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyTabHeaderPropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (7)
115public DataTemplate FooterPaneContentTemplate 117get { return (DataTemplate)GetValue(FooterPaneContentTemplateProperty); } 127typeof(DataTemplate), 172public DataTemplate AuxiliaryPaneContentTemplate 174get { return (DataTemplate)GetValue(AuxiliaryPaneContentTemplateProperty); } 184typeof(DataTemplate), 232DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (1)
66DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
64DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (8)
56DataTemplate template; 262DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplate", typeof(DataTemplate), typeof(RibbonComboBox), 263new FrameworkPropertyMetadata((DataTemplate)null)); 273public DataTemplate SelectionBoxItemTemplate 275get { return (DataTemplate)GetValue(SelectionBoxItemTemplateProperty); } 503DataTemplate itemTemplate = null; 1639private static DataTemplate StringContentTemplate 1693private static DataTemplate s_StringTemplate;
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
118protected override void OnTemplateChanged(DataTemplate oldTemplate, DataTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
520DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (5)
116typeof(DataTemplate), 119(DataTemplate) null)); 124public DataTemplate HeaderTemplate 126get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 409DataTemplate itemTemplate,
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (19)
229DependencyProperty.Register("CurrentFilterTemplate", typeof(DataTemplate), typeof(RibbonGallery), 232private DataTemplate CurrentFilterTemplate 234get { return (DataTemplate)GetValue(CurrentFilterTemplateProperty); } 1984public DataTemplate FilterPaneContentTemplate 1986get { return (DataTemplate)GetValue(FilterPaneContentTemplateProperty); } 1994DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1999public DataTemplate FilterItemTemplate 2001get { return (DataTemplate)GetValue(FilterItemTemplateProperty); } 2009DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2014public DataTemplate AllFilterItemTemplate 2016get { return (DataTemplate)GetValue(AllFilterItemTemplateProperty); } 2024DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2088public override DataTemplate SelectTemplate(object item, DependencyObject container) 2445public DataTemplate CategoryTemplate 2447get { return (DataTemplate)GetValue(CategoryTemplateProperty); } 2455DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged))); 2512public DataTemplate GalleryItemTemplate 2514get { return (DataTemplate)GetValue(GalleryItemTemplateProperty); } 2519DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1242DataTemplate contentTemplate = grouptemplateSizeDefinition.ContentTemplate;
Microsoft\Windows\Controls\Ribbon\RibbonGroupTemplateSizeDefinition.cs (3)
19public DataTemplate ContentTemplate 21get { return (DataTemplate)GetValue(ContentTemplateProperty); } 28typeof(DataTemplate),
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
548DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
510DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);