4 types derived from DataTemplate
PresentationFramework (4)
src\Framework\System\Windows\Controls\ContentPresenter.cs (2)
997private class UseContentTemplate : DataTemplate 1028private class DefaultTemplate : DataTemplate
src\Framework\System\Windows\Controls\ItemContainerTemplate.cs (1)
15public class ItemContainerTemplate : DataTemplate
src\Framework\System\Windows\HierarchicalDataTemplate.cs (1)
21public class HierarchicalDataTemplate : DataTemplate
14 instantiations of DataTemplate
PresentationFramework (10)
src\Framework\MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
47_xmlNodeContentTemplate = new DataTemplate(); 62_clrNodeContentTemplate = new DataTemplate();
src\Framework\System\Windows\Controls\ContentPresenter.cs (6)
56template = new DataTemplate(); 64template = new DataTemplate(); 72template = new DataTemplate(); 719template = new DataTemplate(); 742template = new DataTemplate(); 766template = new DataTemplate();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3148bamlType.DefaultConstructor = delegate() { return new System.Windows.DataTemplate(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1197case KnownElements.DataTemplate: o = new System.Windows.DataTemplate(); break;
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
692this.flagEditorTemplate = new DataTemplate();
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
738dynamicExpressionTemplate = new DataTemplate();
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
935DataTemplate template = new DataTemplate();
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
1149DataTemplate dt = new DataTemplate() { VisualTree = feFactory };
300 references to DataTemplate
PresentationFramework (181)
src\Framework\MS\Internal\Data\DisplayMemberTemplateSelector.cs (4)
36/// Override this method to return an app specific <seealso cref="DataTemplate"/>. 41public override DataTemplate SelectTemplate(object item, DependencyObject container) 77private DataTemplate _xmlNodeContentTemplate; 78private DataTemplate _clrNodeContentTemplate;
src\Framework\System\Windows\Controls\ComboBox.cs (5)
422DependencyProperty.RegisterReadOnly("SelectionBoxItemTemplate", typeof(DataTemplate), typeof(ComboBox), 423new FrameworkPropertyMetadata((DataTemplate)null)); 433public DataTemplate SelectionBoxItemTemplate 435get { return (DataTemplate) GetValue(SelectionBoxItemTemplateProperty); } 876DataTemplate itemTemplate = ItemTemplate;
src\Framework\System\Windows\Controls\ContentControl.cs (9)
125DataTemplate itemTemplate, 341typeof(DataTemplate), 344(DataTemplate) null, 352public DataTemplate ContentTemplate 354get { return (DataTemplate) GetValue(ContentTemplateProperty); } 364ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 372protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
src\Framework\System\Windows\Controls\ContentPresenter.cs (54)
51DataTemplate template; 113DataTemplate defaultValue = (DataTemplate) metadata.DefaultValue; 263(DataTemplate)null, 270public DataTemplate ContentTemplate 272get { return (DataTemplate) GetValue(ContentControl.ContentTemplateProperty); } 283ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 291protected virtual void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate) 529protected virtual DataTemplate ChooseTemplate() 531DataTemplate template = null; 561internal static DataTemplate AccessTextContentTemplate 566internal static DataTemplate StringContentTemplate 581set { _templateCache = (DataTemplate)value; } 599DataTemplate itemTemplate, 686static DataTemplate XmlNodeContentTemplate 691static DataTemplate UIElementContentTemplate 696static DataTemplate DefaultContentTemplate 706DataTemplate FormattingAccessTextContentTemplate 710DataTemplate template = AccessTextFormattingTemplateField.GetValue(this); 729DataTemplate FormattingStringContentTemplate 733DataTemplate template = StringFormattingTemplateField.GetValue(this); 752DataTemplate FormattingXmlNodeContentTemplate 756DataTemplate template = XMLFormattingTemplateField.GetValue(this); 783typeof(DataTemplate), 786(DataTemplate) null, // default value 794private DataTemplate Template 803OnTemplateChanged((DataTemplate)oldTemplate, (DataTemplate)newTemplate); 822protected virtual void OnTemplateChanged(DataTemplate oldTemplate, DataTemplate newTemplate) 835DataTemplate oldTemplate = Template; 836DataTemplate newTemplate = null; 888DataTemplate SelectTemplateForString(string s) 890DataTemplate template; 916DataTemplate template; 936DataTemplate SelectTemplateForXML() 1162public override DataTemplate SelectTemplate(object item, DependencyObject container) 1164DataTemplate template = null; 1169template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate)); 1204private DataTemplate _templateCache; 1210private static DataTemplate s_AccessTextTemplate; 1211private static DataTemplate s_StringTemplate; 1212private static DataTemplate s_XmlNodeTemplate; 1213private static DataTemplate s_UIElementTemplate; 1214private static DataTemplate s_DefaultTemplate; 1216private static readonly UncommonField<DataTemplate> XMLFormattingTemplateField = new UncommonField<DataTemplate>(); 1217private static readonly UncommonField<DataTemplate> StringFormattingTemplateField = new UncommonField<DataTemplate>(); 1218private static readonly UncommonField<DataTemplate> AccessTextFormattingTemplateField = new UncommonField<DataTemplate>();
src\Framework\System\Windows\Controls\DataGrid.cs (6)
1430public DataTemplate RowHeaderTemplate 1432get { return (DataTemplate)GetValue(RowHeaderTemplateProperty); } 1440DependencyProperty.Register("RowHeaderTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 3925public DataTemplate RowDetailsTemplate 3927get { return (DataTemplate)GetValue(RowDetailsTemplateProperty); } 3935DependencyProperty.Register("RowDetailsTemplate", typeof(DataTemplate), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyRowAndDetailsPropertyChanged));
src\Framework\System\Windows\Controls\DataGridColumn.cs (3)
84public DataTemplate HeaderTemplate 86get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 94DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged));
src\Framework\System\Windows\Controls\DataGridRow.cs (6)
311public DataTemplate HeaderTemplate 313get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 321DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate)); 360public DataTemplate DetailsTemplate 362get { return (DataTemplate)GetValue(DetailsTemplateProperty); } 370DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
src\Framework\System\Windows\Controls\DataGridTemplateColumn.cs (8)
61public DataTemplate CellTemplate 63get { return (DataTemplate)GetValue(CellTemplateProperty); } 72typeof(DataTemplate), 98public DataTemplate CellEditingTemplate 100get { return (DataTemplate)GetValue(CellEditingTemplateProperty); } 109typeof(DataTemplate), 137private void ChooseCellTemplateAndSelector(bool isEditing, out DataTemplate template, out DataTemplateSelector templateSelector) 167DataTemplate template;
src\Framework\System\Windows\Controls\DataTemplateSelector.cs (2)
30/// Override this method to return an app specific <seealso cref="DataTemplate"/>. 35public virtual DataTemplate SelectTemplate(object item, DependencyObject container)
src\Framework\System\Windows\Controls\GridView.cs (3)
274typeof(DataTemplate), 284public DataTemplate ColumnHeaderTemplate 286get { return (DataTemplate)GetValue(ColumnHeaderTemplateProperty); }
src\Framework\System\Windows\Controls\GridViewColumn.cs (6)
169typeof(DataTemplate), 178public DataTemplate HeaderTemplate 180get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 320typeof(DataTemplate), 329public DataTemplate CellTemplate 331get { return (DataTemplate)GetValue(CellTemplateProperty); }
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
88public DataTemplate ColumnHeaderTemplate 90get { return (DataTemplate)GetValue(ColumnHeaderTemplateProperty); }
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (2)
335DataTemplate dt; 604DataTemplate dt;
src\Framework\System\Windows\Controls\GroupStyle.cs (2)
139public DataTemplate HeaderTemplate 229DataTemplate _headerTemplate;
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (9)
139typeof(DataTemplate), 142(DataTemplate) null, 149public DataTemplate HeaderTemplate 151get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 161ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 169protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate) 327DataTemplate itemTemplate,
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (11)
130(DataTemplate) null, 137public DataTemplate HeaderTemplate 139get { return (DataTemplate) GetValue(HeaderTemplateProperty); } 149ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 157protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate) 278DataTemplate itemTemplate = parentItemsControl.ItemTemplate; 404DataTemplate headerTemplate = HeaderTemplate; 416headerTemplate = (DataTemplate)FindTemplateResourceInternal(this, item, typeof(DataTemplate));
src\Framework\System\Windows\Controls\ItemContainerTemplateSelector.cs (3)
24public virtual DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 32public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 35return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
src\Framework\System\Windows\Controls\ItemsControl.cs (9)
460typeof(DataTemplate), 463(DataTemplate) null, 470public DataTemplate ItemTemplate 472get { return (DataTemplate) GetValue(ItemTemplateProperty); } 483((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 491protected virtual void OnItemTemplateChanged(DataTemplate oldItemTemplate, DataTemplate newItemTemplate) 1758DataTemplate itemTemplate = parentItemsControl.ItemTemplate;
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2157DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (3)
22[TemplatePart(Name = CalendarItem.ElementDayTitleTemplate, Type = typeof(DataTemplate))] 51private DataTemplate _dayTitleTemplate; 183_dayTitleTemplate = Template.Resources[DayTitleTemplateResourceKey] as DataTemplate;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
508DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
src\Framework\System\Windows\Controls\Primitives\StatusBar.cs (1)
118DataTemplate itemContainerTemplate = ItemContainerTemplateSelector.SelectTemplate(currentItem, this);
src\Framework\System\Windows\Controls\TabControl.cs (8)
143private static readonly DependencyPropertyKey SelectedContentTemplatePropertyKey = DependencyProperty.RegisterReadOnly("SelectedContentTemplate", typeof(DataTemplate), typeof(TabControl), new FrameworkPropertyMetadata((DataTemplate)null)); 160public DataTemplate SelectedContentTemplate 164return (DataTemplate)GetValue(SelectedContentTemplateProperty); 229public static readonly DependencyProperty ContentTemplateProperty = DependencyProperty.Register("ContentTemplate", typeof(DataTemplate), typeof(TabControl), new FrameworkPropertyMetadata((DataTemplate)null)); 237public DataTemplate ContentTemplate 241return (DataTemplate)GetValue(ContentTemplateProperty);
src\Framework\System\Windows\Controls\TabItem.cs (2)
404protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
src\Framework\System\Windows\FrameworkElement.cs (1)
1447else if (templateType == typeof(DataTemplate))
src\Framework\System\Windows\HierarchicalDataTemplate.cs (2)
77public DataTemplate ItemTemplate 238private DataTemplate _itemTemplate;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
212case 120: t = () => typeof(DataTemplate); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (14)
4345Type type = typeof(System.Windows.DataTemplate); 4347this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 4353bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; }; 4354bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).VisualTree; }; 6262Type type = typeof(System.Windows.DataTemplate); 6264this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 6270bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).Triggers; }; 6279Type type = typeof(System.Windows.DataTemplate); 6281this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 6289bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).DataTemplateKey; }; 8017Type type = typeof(System.Windows.DataTemplate); 8019this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType 8028bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).DataType = (System.Object)value; }; 8029bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).DataType; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3146typeof(System.Windows.DataTemplate),
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
203XamlType dataTemplateXType = schemaContext.GetXamlType(typeof(DataTemplate));
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5664case KnownElements.DataTemplate: t = typeof(System.Windows.DataTemplate); break;
System.Activities.Core.Presentation (12)
System\Activities\Core\Presentation\FlowSwitchLinkCasePropertyEditor.cs (1)
17this.InlineEditorTemplate = (DataTemplate)EditorCategoryTemplateDictionary.Instance.GetCategoryTemplate("FlowSwitchLinkCase_InlineEditorTemplate");
System\Activities\Core\Presentation\ReorderableListEditor.xaml.cs (3)
17public static readonly DependencyProperty ItemTemplateProperty = DependencyProperty.Register("ItemTemplate", typeof(DataTemplate), typeof(ReorderableListEditor), new PropertyMetadata(null)); 26public DataTemplate ItemTemplate 28get { return (DataTemplate)this.GetValue(ItemTemplateProperty); }
System\Activities\Core\Presentation\Themes\EditorCategoryTemplateDictionary.xaml.cs (4)
31public DataTemplate GetCategoryTemplate(string templateName) 33DataTemplate result = null; 36if (!(this[templateName] is DataTemplate)) 40result = this[templateName] as DataTemplate;
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
324directionCol.CellEditingTemplate = (DataTemplate)this.WPF_DataGrid.FindResource("argumentDirectionEditingTemplate");
System\ServiceModel\Activities\Presentation\CorrelatesOnValueEditor.cs (1)
67var template = EditorCategoryTemplateDictionary.Instance.GetCategoryTemplate("CorrelatesOnDesigner_DialogTemplate");
System\ServiceModel\Activities\Presentation\ReceiveContentPropertyEditor.cs (1)
16this.InlineEditorTemplate = (DataTemplate)MessagingContentPropertyEditorResources.GetResources()["ReceiveContentPresenter_InlineEditorTemplate"];
System\ServiceModel\Activities\Presentation\SendContentPropertyEditor.cs (1)
16this.InlineEditorTemplate = (DataTemplate)MessagingContentPropertyEditorResources.GetResources()["SendContentPresenter_InlineEditorTemplate"];
System.Activities.Presentation (107)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\BoolViewEditor.cs (1)
17base(PropertyInspectorResources.GetResources()["BoolViewTemplate"] as DataTemplate) { }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\quickitemtemplateselector.cs (5)
25private DataTemplate _popupTemplate; 26private DataTemplate _inlineTemplate; 28public DataTemplate PopupTemplate 36public DataTemplate InlineTemplate 44public override DataTemplate SelectTemplate(object item, DependencyObject container)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyViewEditor.cs (2)
26PropertyInspectorResources.GetResources()["MarkerSubPropertyTemplate"] as DataTemplate, 27PropertyInspectorResources.GetResources()["MarkerSubPropertyTemplate"] as DataTemplate)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (3)
52public static readonly DependencyProperty ItemTemplateProperty = DependencyProperty.Register("ItemTemplate", typeof(DataTemplate), typeof(ChoiceEditor), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(ChoiceEditor.ItemTemplateChanged))); 207public DataTemplate ItemTemplate 209get { return (DataTemplate)this.GetValue(ChoiceEditor.ItemTemplateProperty); }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogControl.xaml.cs (1)
39public PropertyValueDialogControl(PropertyEntry property, DataTemplate valueDialogTemplate)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (3)
62DataTemplate dialogEditorTemplate = GetDialogEditorTemplate(GetParentProperty(e.OriginalSource)); 87DataTemplate dialogEditorTemplate = GetDialogEditorTemplate(parentProperty); 159private static DataTemplate GetDialogEditorTemplate(PropertyEntry property)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
37public abstract DataTemplate EditorTemplate { get; }
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\DialogPropertyValueEditor.cs (6)
16private DataTemplate _dialogEditorTemplate; 31public DialogPropertyValueEditor(DataTemplate dialogEditorTemplate, DataTemplate inlineEditorTemplate) 41public DataTemplate DialogEditorTemplate 61internal override DataTemplate GetPropertyValueEditor(PropertyContainerEditMode mode) { 63(mode == PropertyContainerEditMode.Dialog ? _dialogEditorTemplate : (DataTemplate)null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\ExtendedPropertyValueEditor.cs (6)
13private DataTemplate _extendedEditorTemplate; 29public ExtendedPropertyValueEditor(DataTemplate extendedEditorTemplate, DataTemplate inlineEditorTemplate) 39public DataTemplate ExtendedEditorTemplate 45internal override DataTemplate GetPropertyValueEditor(PropertyContainerEditMode mode) { 48mode == PropertyContainerEditMode.ExtendedPopup) ? _extendedEditorTemplate : (DataTemplate)null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (7)
35DataTemplate flagEditorTemplate; 466public DataTemplate InlineEditorTemplate 482public DataTemplate ExtendedEditorTemplate 499public DataTemplate DialogEditorTemplate 626private DataTemplate FindPropertyValueEditorTemplate(PropertyContainerEditMode editMode) 630DataTemplate requestedTemplate = null; 685DataTemplate GetFlagEditorTemplate(PropertyContainerEditMode editMode)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyValueEditor.cs (4)
17private DataTemplate _inlineEditorTemplate; 30public PropertyValueEditor(DataTemplate inlineEditorTemplate) { 39public DataTemplate InlineEditorTemplate 45internal virtual DataTemplate GetPropertyValueEditor(PropertyContainerEditMode mode) {
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (2)
729static DataTemplate dynamicExpressionTemplate; 732static DataTemplate DynamicExpressionTemplate
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
141ContentTemplate = (DataTemplate)EditorResources.GetResources()["ErrorPresenterDialogTemplate"],
System.Activities.Presentation\System\Activities\Presentation\PropertyEditing\VersionPropertyValueEditor.cs (1)
16this.InlineEditorTemplate = EditorResources.GetResources()["VersionPropertyValueEditorTemplate"] as DataTemplate;
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (6)
60typeof(DataTemplate), 66typeof(DataTemplate), 171public DataTemplate ToolTemplate 173get { return (DataTemplate)GetValue(ToolTemplateProperty); } 178public DataTemplate CategoryTemplate 180get { return (DataTemplate)GetValue(CategoryTemplateProperty); }
System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewTemplateSelector.cs (2)
22public override DataTemplate SelectTemplate(object item, DependencyObject container) 24DataTemplate result = base.SelectTemplate(item, container);
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (6)
446resolveParams.Template = (DataTemplate)this.FindResource(key); 1515this.InlineEditorTemplate = EditorResources.GetResources()["DirectionEditor_InlineEditorTemplate"] as DataTemplate; 1523this.InlineEditorTemplate = EditorResources.GetResources()["inlineExpressionEditorTemplateForDesignTimeArgument"] as DataTemplate; 1531this.InlineEditorTemplate = EditorResources.GetResources()["IsRequiredPropertyEditor_InlineEditorTemplate"] as DataTemplate; 1539this.InlineEditorTemplate = EditorResources.GetResources()["inlineExpressionEditorTemplateForDesignTimeArgument_ValueNotSupported"] as DataTemplate; 1547this.InlineEditorTemplate = EditorResources.GetResources()["inlineExpressionEditorTemplateForDesignTimeArgument_InvalidXamlMember"] as DataTemplate;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (12)
66static DataTemplate dynamicCellContentTemplate; 465if (this.AddNewRowContent is DataTemplate) 467presenter.ContentTemplate = (DataTemplate)this.AddNewRowContent; 472presenter.ContentTemplate = (DataTemplate)this.FindResource("defaultAddNewRowTemplate"); 795.Where(p => DataTemplate.Equals(p.CellEditingTemplate, DataGridHelper.DynamicCellContentTemplate) && 796DataTemplate.Equals(p.CellTemplate, DataGridHelper.DynamicCellContentTemplate)) 912container.ContentTemplate = (DataTemplate)dataGrid.Resources["dynamicContentErrorTemplate"]; 929public static DataTemplate DynamicCellContentTemplate 935DataTemplate template = new DataTemplate(); 1496public DataTemplate Template { get; set; } 1502DataTemplate toolTipTemplate; 1507this.toolTipTemplate = (DataTemplate)this.owner.FindResource("errorToolTipTemplate");
System.Activities.Presentation\System\Activities\Presentation\View\DesignerWithHeader.cs (3)
17DependencyProperty.Register("Header", typeof(DataTemplate), typeof(DesignerWithHeader), new UIPropertyMetadata(null)); 18public DataTemplate Header 20get { return (DataTemplate)GetValue(HeaderProperty); }
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (4)
354DataTemplate designModeTemplate = this.FindResource("designModelTemplate") as DataTemplate; 388this.ContentTemplate = this.FindResource("disabledInlineEditingTemplate") as DataTemplate; 409this.ContentTemplate = this.FindResource("unsupportedEditorTemplate") as DataTemplate;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionValueEditor.cs (4)
22this.InlineEditorTemplate = EditorResources.GetResources()["inlineExpressionEditorTemplate"] as DataTemplate; 39protected virtual DataTemplate DialogTemplate 41get { return (DataTemplate)EditorResources.GetResources()["dialogExpressionEditorTemplate"]; } 51public EditorDialog(DependencyObject owner, PropertyValue propertyValue, EditingContext context, DataTemplate dialogTemplate, string title)
System.Activities.Presentation\System\Activities\Presentation\View\HandleValueEditor.cs (1)
14this.InlineEditorTemplate = (DataTemplate)EditorResources.GetResources()["handleValueEditor"];
System.Activities.Presentation\System\Activities\Presentation\View\TypePropertyEditor.cs (1)
19this.InlineEditorTemplate = (DataTemplate)EditorResources.GetResources()["TypeBrowser_InlineEditorTemplate"];
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
527resolveParams.Template = (DataTemplate)this.FindResource(key); 1453this.InlineEditorTemplate = EditorResources.GetResources()["ScopeEditor_InlineEditorTemplate"] as DataTemplate;
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierNameEditor.cs (1)
15this.InlineEditorTemplate = (DataTemplate)EditorResources.GetResources()["VBIdentifierNameEditorTemplate"];
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (9)
124this.ContentTemplate = (DataTemplate)FindResource("textblock"); 261if (!this.ContentTemplate.Equals((DataTemplate)FindResource("textblock"))) 263this.ContentTemplate = (DataTemplate)FindResource("textblock"); 332if (!this.ContentTemplate.Equals((DataTemplate)FindResource("textblock"))) 334this.ContentTemplate = (DataTemplate)FindResource("textblock"); 441if (this.ContentTemplate.Equals((DataTemplate)FindResource("textblock")) && !isInReadOnlyMode) 453this.ContentTemplate = (DataTemplate)FindResource("editor"); 457this.ContentTemplate = (DataTemplate)FindResource("textbox"); 585this.ContentTemplate = (DataTemplate)FindResource("textbox");
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (4)
1139private static DataTemplate defaultSpacerTemplate = CreateDefaultSpacerTemplate(); 1141private static DataTemplate SpacerTemplate 1146private static DataTemplate CreateDefaultSpacerTemplate() 1149DataTemplate dt = new DataTemplate() { VisualTree = feFactory };
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (9)
41DependencyProperty.Register("SpacerTemplate", typeof(DataTemplate), typeof(WorkflowItemsPresenter), new UIPropertyMetadata(null)); 44DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(WorkflowItemsPresenter), new UIPropertyMetadata(null)); 47DependencyProperty.Register("FooterTemplate", typeof(DataTemplate), typeof(WorkflowItemsPresenter), new UIPropertyMetadata(null)); 125public DataTemplate SpacerTemplate 127get { return (DataTemplate)GetValue(SpacerTemplateProperty); } 132public DataTemplate HeaderTemplate 134get { return (DataTemplate)GetValue(HeaderTemplateProperty); } 139public DataTemplate FooterTemplate 141get { return (DataTemplate)GetValue(FooterTemplateProperty); }