4 types derived from DataTemplate
PresentationFramework (4)
System\Windows\Controls\ContentPresenter.cs (2)
995private class UseContentTemplate : DataTemplate 1026private 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)
45_xmlNodeContentTemplate = new DataTemplate(); 60_clrNodeContentTemplate = new DataTemplate();
System\Windows\Controls\ContentPresenter.cs (6)
54template = new DataTemplate(); 62template = new DataTemplate(); 70template = new DataTemplate(); 717template = new DataTemplate(); 740template = new DataTemplate(); 764template = new DataTemplate();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3152bamlType.DefaultConstructor = delegate() { return new System.Windows.DataTemplate(); };
System\Windows\Markup\KnownTypes.cs (1)
1196case KnownElements.DataTemplate: o = new System.Windows.DataTemplate(); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
62template = 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)
34/// Override this method to return an app specific <seealso cref="DataTemplate"/>. 39public override DataTemplate SelectTemplate(object item, DependencyObject container) 75private DataTemplate _xmlNodeContentTemplate; 76private DataTemplate _clrNodeContentTemplate;
System\Windows\Controls\ComboBox.cs (5)
421DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplate", typeof(DataTemplate), typeof(ComboBox), 422new FrameworkPropertyMetadata((DataTemplate)null)); 432public DataTemplate SelectionBoxItemTemplate 434get { return (DataTemplate) GetValue(SelectionBoxItemTemplateProperty); } 874DataTemplate itemTemplate = ItemTemplate;
System\Windows\Controls\ContentControl.cs (9)
129DataTemplate itemTemplate, 345typeof(DataTemplate), 348(DataTemplate) null, 356public DataTemplate ContentTemplate 358get { return (DataTemplate) GetValue(ContentTemplateProperty); } 368ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 376protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
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\DataGrid.cs (6)
1429public DataTemplate RowHeaderTemplate 1431get { return (DataTemplate)GetValue(RowHeaderTemplateProperty); } 1439DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 3920public DataTemplate RowDetailsTemplate 3922get { return (DataTemplate)GetValue(RowDetailsTemplateProperty); } 3930DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
System\Windows\Controls\DataGridColumn.cs (3)
83public DataTemplate HeaderTemplate 85get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 93DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged));
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));
System\Windows\Controls\DataGridTemplateColumn.cs (8)
60public DataTemplate CellTemplate 62get { return (DataTemplate)GetValue(CellTemplateProperty); } 71typeof(DataTemplate), 97public DataTemplate CellEditingTemplate 99get { return (DataTemplate)GetValue(CellEditingTemplateProperty); } 108typeof(DataTemplate), 136private void ChooseCellTemplateAndSelector(bool isEditing, out DataTemplate template, out DataTemplateSelector templateSelector) 166DataTemplate 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)
167typeof(DataTemplate), 176public DataTemplate HeaderTemplate 178get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 318typeof(DataTemplate), 327public DataTemplate CellTemplate 329get { return (DataTemplate)GetValue(CellTemplateProperty); }
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
86public DataTemplate ColumnHeaderTemplate 88get { return (DataTemplate)GetValue(ColumnHeaderTemplateProperty); }
System\Windows\Controls\GridViewRowPresenter.cs (2)
333DataTemplate dt; 601DataTemplate dt;
System\Windows\Controls\GroupStyle.cs (2)
136public DataTemplate HeaderTemplate 226DataTemplate _headerTemplate;
System\Windows\Controls\HeaderedContentControl.cs (9)
138typeof(DataTemplate), 141(DataTemplate) null, 148public DataTemplate HeaderTemplate 150get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 160ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 168protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate) 326DataTemplate itemTemplate,
System\Windows\Controls\HeaderedItemsControl.cs (11)
134(DataTemplate) null, 141public DataTemplate HeaderTemplate 143get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 153ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 161protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate) 282DataTemplate itemTemplate = parentItemsControl.ItemTemplate; 408DataTemplate headerTemplate = HeaderTemplate; 420headerTemplate = (DataTemplate)FindTemplateResourceInternal(this, item, typeof(DataTemplate));
System\Windows\Controls\ItemContainerTemplateSelector.cs (3)
23public virtual DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 31public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 34return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
System\Windows\Controls\ItemsControl.cs (9)
458typeof(DataTemplate), 461(DataTemplate) null, 468public DataTemplate ItemTemplate 470get { return (DataTemplate) GetValue(ItemTemplateProperty); } 481((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 489protected virtual void OnItemTemplateChanged(DataTemplate oldItemTemplate, DataTemplate newItemTemplate) 1755DataTemplate itemTemplate = parentItemsControl.ItemTemplate;
System\Windows\Controls\MenuItem.cs (1)
2109DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
System\Windows\Controls\Primitives\CalendarItem.cs (3)
21[TemplatePart(Name = CalendarItem.ElementDayTitleTemplate, Type = typeof(DataTemplate))] 50private DataTemplate _dayTitleTemplate; 182_dayTitleTemplate = Template.Resources[DayTitleTemplateResourceKey] as DataTemplate;
System\Windows\Controls\Primitives\MenuBase.cs (1)
504DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
System\Windows\Controls\Primitives\StatusBar.cs (1)
117DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
System\Windows\Controls\TabControl.cs (8)
142private static readonly DependencyPropertyKey SelectedContentTemplatePropertyKey = DependencyProperty.RegisterReadOnly("SelectedContentTemplate", typeof(DataTemplate), typeof(TabControl), new FrameworkPropertyMetadata((DataTemplate)null)); 159public DataTemplate SelectedContentTemplate 163return (DataTemplate)GetValue(SelectedContentTemplateProperty); 228public static readonly DependencyProperty ContentTemplateProperty = DependencyProperty.Register("ContentTemplate", typeof(DataTemplate), typeof(TabControl), new FrameworkPropertyMetadata((DataTemplate)null)); 236public DataTemplate ContentTemplate 240return (DataTemplate)GetValue(ContentTemplateProperty);
System\Windows\Controls\TabItem.cs (2)
418protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
System\Windows\FrameworkElement.cs (1)
1448else if (templateType == typeof(DataTemplate))
System\Windows\HierarchicalDataTemplate.cs (2)
76public DataTemplate ItemTemplate 237private DataTemplate _itemTemplate;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
216case 120: t = () => typeof(DataTemplate); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (14)
4370Type type = typeof(System.Windows.DataTemplate); 4372this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 4378bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4379bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).VisualTree; }; 6304Type type = typeof(System.Windows.DataTemplate); 6306this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 6312bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).Triggers; }; 6321Type type = typeof(System.Windows.DataTemplate); 6323this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 6331bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).DataTemplateKey; }; 8059Type type = typeof(System.Windows.DataTemplate); 8061this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 8070bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).DataType = (System.Object)value; }; 8071bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).DataType; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3150typeof(System.Windows.DataTemplate),
System\Windows\Markup\DependencyPropertyConverter.cs (1)
195XamlType dataTemplateXType = schemaContext.GetXamlType(typeof(DataTemplate));
System\Windows\Markup\KnownTypes.cs (1)
5674case KnownElements.DataTemplate: t = typeof(System.Windows.DataTemplate); break;
System.Windows.Controls.Ribbon (62)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (12)
286public DataTemplate HelpPaneContentTemplate 288get { return (DataTemplate)GetValue(HelpPaneContentTemplateProperty); } 295typeof(DataTemplate), 375public DataTemplate TitleTemplate 377get { return (DataTemplate)GetValue(TitleTemplateProperty); } 384typeof(DataTemplate), 443public DataTemplate ContextualTabGroupHeaderTemplate 445get { return (DataTemplate)GetValue(ContextualTabGroupHeaderTemplateProperty); } 450DependencyProperty.Register("ContextualTabGroupHeaderTemplate", typeof(DataTemplate), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyContextualTabGroupPropertyChanged))); 626public DataTemplate TabHeaderTemplate 628get { return (DataTemplate)GetValue(TabHeaderTemplateProperty); } 634DependencyProperty.Register("TabHeaderTemplate", typeof(DataTemplate), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyTabHeaderPropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (7)
117public DataTemplate FooterPaneContentTemplate 119get { return (DataTemplate)GetValue(FooterPaneContentTemplateProperty); } 129typeof(DataTemplate), 174public DataTemplate AuxiliaryPaneContentTemplate 176get { return (DataTemplate)GetValue(AuxiliaryPaneContentTemplateProperty); } 186typeof(DataTemplate), 234DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (1)
69DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
67DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (8)
58DataTemplate template; 264DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplate", typeof(DataTemplate), typeof(RibbonComboBox), 265new FrameworkPropertyMetadata((DataTemplate)null)); 275public DataTemplate SelectionBoxItemTemplate 277get { return (DataTemplate)GetValue(SelectionBoxItemTemplateProperty); } 505DataTemplate itemTemplate = null; 1637private static DataTemplate StringContentTemplate 1691private static DataTemplate s_StringTemplate;
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
123protected override void OnTemplateChanged(DataTemplate oldTemplate, DataTemplate newTemplate)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
508DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (5)
118typeof(DataTemplate), 121(DataTemplate) null)); 126public DataTemplate HeaderTemplate 128get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 411DataTemplate itemTemplate,
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (19)
231DependencyProperty.Register("CurrentFilterTemplate", typeof(DataTemplate), typeof(RibbonGallery), 234private DataTemplate CurrentFilterTemplate 236get { return (DataTemplate)GetValue(CurrentFilterTemplateProperty); } 1982public DataTemplate FilterPaneContentTemplate 1984get { return (DataTemplate)GetValue(FilterPaneContentTemplateProperty); } 1992DependencyProperty.Register("FilterPaneContentTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 1997public DataTemplate FilterItemTemplate 1999get { return (DataTemplate)GetValue(FilterItemTemplateProperty); } 2007DependencyProperty.Register("FilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2012public DataTemplate AllFilterItemTemplate 2014get { return (DataTemplate)GetValue(AllFilterItemTemplateProperty); } 2022DependencyProperty.Register("AllFilterItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemTemplateChanged)); 2086public override DataTemplate SelectTemplate(object item, DependencyObject container) 2443public DataTemplate CategoryTemplate 2445get { return (DataTemplate)GetValue(CategoryTemplateProperty); } 2453DependencyProperty.Register("CategoryTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryTemplateChanged))); 2510public DataTemplate GalleryItemTemplate 2512get { return (DataTemplate)GetValue(GalleryItemTemplateProperty); } 2517DependencyProperty.Register("GalleryItemTemplate", typeof(DataTemplate), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1245DataTemplate contentTemplate = grouptemplateSizeDefinition.ContentTemplate;
Microsoft\Windows\Controls\Ribbon\RibbonGroupTemplateSizeDefinition.cs (3)
20public DataTemplate ContentTemplate 22get { return (DataTemplate)GetValue(ContentTemplateProperty); } 29typeof(DataTemplate),
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
551DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
513DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);