4 types derived from ContentPresenter
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\RenameUserInputPresenter.cs (1)
9internal sealed class RenameUserInputPresenter : ContentPresenter
PresentationFramework (2)
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
17public class DataGridDetailsPresenter : ContentPresenter
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
30sealed public class ScrollContentPresenter : ContentPresenter, IScrollInfo
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (1)
26public class RibbonContentPresenter : ContentPresenter
6 instantiations of ContentPresenter
PresentationFramework (6)
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
175ContentPresenter innerContentPresenter = new ContentPresenter();
System\Windows\Controls\DataGridTemplateColumn.cs (1)
171ContentPresenter contentPresenter = new ContentPresenter();
System\Windows\Controls\GridViewRowPresenter.cs (1)
598ContentPresenter cp = new ContentPresenter();
System\Windows\Controls\ItemsControl.cs (1)
1581return new ContentPresenter();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2923bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ContentPresenter(); };
System\Windows\Markup\KnownTypes.cs (1)
1185case KnownElements.ContentPresenter: o = new System.Windows.Controls.ContentPresenter(); break;
175 references to ContentPresenter
Microsoft.VisualStudio.LanguageServices (19)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Analyzers\View\AnalyzerSettingsView.g.cs (2)
44internal System.Windows.Controls.ContentPresenter AnalyzerTable; 81this.AnalyzerTable = ((System.Windows.Controls.ContentPresenter)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.g.cs (2)
44internal System.Windows.Controls.ContentPresenter CodeStyleTable; 81this.CodeStyleTable = ((System.Windows.Controls.ContentPresenter)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.g.cs (2)
44internal System.Windows.Controls.ContentPresenter NamingStyleTable; 81this.NamingStyleTable = ((System.Windows.Controls.ContentPresenter)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\SettingsEditorControl.g.cs (8)
108internal System.Windows.Controls.ContentPresenter WhitespaceFrame; 116internal System.Windows.Controls.ContentPresenter CodeStyleFrame; 124internal System.Windows.Controls.ContentPresenter NamingStyleFrame; 132internal System.Windows.Controls.ContentPresenter AnalyzersFrame; 199this.WhitespaceFrame = ((System.Windows.Controls.ContentPresenter)(target)); 202this.CodeStyleFrame = ((System.Windows.Controls.ContentPresenter)(target)); 205this.NamingStyleFrame = ((System.Windows.Controls.ContentPresenter)(target)); 208this.AnalyzersFrame = ((System.Windows.Controls.ContentPresenter)(target));
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\EditorConfigSettings\Whitespace\View\WhitespaceSettingsView.g.cs (2)
44internal System.Windows.Controls.ContentPresenter WhitespaceTable; 81this.WhitespaceTable = ((System.Windows.Controls.ContentPresenter)(target));
EditorConfigSettings\SettingsEditorControl.xaml.cs (3)
134if (GetTabItem(previousTabItem.Tag) is ContentPresenter prevFrame && 135GetTabItem(selectedTabItem.Tag) is ContentPresenter currentFrame) 142ContentPresenter GetTabItem(object tag)
PresentationFramework (127)
MS\Internal\AppModel\NavigationHelper.cs (2)
28ContentPresenter cp = null; 31cp = (ContentPresenter)navigator.Template.FindName(contentPresenterName, navigator);
MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
46FrameworkElementFactory text = ContentPresenter.CreateTextBlockFactory(); 61FrameworkElementFactory text = ContentPresenter.CreateTextBlockFactory();
MS\Internal\Data\ObjectRef.cs (4)
267ContentPresenter cp = VisualTreeHelper.IsVisualType(dd) ? VisualTreeHelper.GetParent(dd) as ContentPresenter : null; 479ContentPresenter cp; 481if ((cp = d as ContentPresenter) != null)
MS\Internal\Helper.cs (1)
443if (d is System.Windows.Controls.ContentPresenter)
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
28internal GridViewCellAutomationPeer(ContentPresenter owner, ListViewAutomationPeer parent)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
73if (ele is ContentPresenter) 75peer = new GridViewCellAutomationPeer((ContentPresenter)ele, _listviewAP);
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (1)
48if (templatedParent == null || templatedParent is ContentPresenter)
System\Windows\Automation\Peers\TabItemAutomationPeer.cs (1)
73ContentPresenter contentHost = parentTabControl.SelectedContentPresenter;
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (1)
72if (templatedParent == null || templatedParent is ContentPresenter)
System\Windows\Controls\ComboBox.cs (2)
953itemTemplate = ContentPresenter.StringContentTemplate; 962itemTemplate = ContentPresenter.StringContentTemplate;
System\Windows\Controls\ContentPresenter.cs (25)
137typeof(ContentPresenter), 161typeof(ContentPresenter), 181ContentPresenter ctrl = (ContentPresenter)d; 259typeof(ContentPresenter), 279ContentPresenter ctrl = (ContentPresenter)d; 306typeof(ContentPresenter), 340ContentPresenter ctrl = (ContentPresenter) d; 368typeof(ContentPresenter), 391ContentPresenter ctrl = (ContentPresenter)d; 418typeof(ContentPresenter), 782typeof(ContentPresenter), 807ContentPresenter c = (ContentPresenter) d; 963static TextBlock CreateTextBlock(ContentPresenter container) 1009object content = ((ContentPresenter)container).Content; 1048ContentPresenter cp = (ContentPresenter)container; 1061private UIElement DefaultExpansion(object content, ContentPresenter container) 1082private void DoDefaultExpansion(TextBlock textBlock, object content, ContentPresenter container) 1176template = ((ContentPresenter)container).SelectTemplateForString(s); 1180template = ((ContentPresenter)container).SelectTemplateForXML();
System\Windows\Controls\DataGridCell.cs (2)
406ContentPresenter cp = oldContent as ContentPresenter;
System\Windows\Controls\DataGridHyperlinkColumn.cs (2)
175ContentPresenter innerContentPresenter = new ContentPresenter(); 185ApplyContentBinding(innerContentPresenter, ContentPresenter.ContentProperty);
System\Windows\Controls\DataGridTemplateColumn.cs (2)
171ContentPresenter contentPresenter = new ContentPresenter(); 172BindingOperations.SetBinding(contentPresenter, ContentPresenter.ContentProperty, new Binding());
System\Windows\Controls\DataTemplateSelector.cs (1)
22/// <seealso cref="ContentPresenter"/> class.
System\Windows\Controls\Frame.cs (1)
102[TemplatePart(Name = "PART_FrameCP", Type = typeof(ContentPresenter))]
System\Windows\Controls\GridViewRowPresenter.cs (5)
328ContentPresenter cp = InternalChildren[index] as ContentPresenter; 598ContentPresenter cp = new ContentPresenter(); 641ContentPresenter cellAsCP; 650if ((cellAsCP = cell as ContentPresenter) != null)
System\Windows\Controls\ItemsControl.cs (4)
1605ContentPresenter cp; 1617else if ((cp = element as ContentPresenter) != null) 1641ContentPresenter cp; 1653else if ((cp = element as ContentPresenter) != null)
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
389ContentPresenter cp = root as ContentPresenter; 430ContentPresenter cp = root as ContentPresenter;
System\Windows\Controls\ScrollViewer.cs (1)
2712content.SetValue(ContentPresenter.MarginProperty, new TemplateBindingExtension(PaddingProperty));
System\Windows\Controls\StyleSelector.cs (1)
30/// <seealso cref="ContentPresenter"/> class.
System\Windows\Controls\TabControl.cs (4)
38[TemplatePart(Name = "PART_SelectedContentHost", Type = typeof(ContentPresenter))] 500internal ContentPresenter SelectedContentPresenter 504return GetTemplateChild(SelectedContentHostTemplateName) as ContentPresenter; 574ContentPresenter scp = SelectedContentPresenter;
System\Windows\Controls\TabItem.cs (2)
313ContentPresenter selectedContentPresenter = parentTabControl.SelectedContentPresenter; 348ContentPresenter selectedContentPresenter = parentTabControl.SelectedContentPresenter;
System\Windows\Data\BindingExpression.cs (2)
714(TargetProperty == ContentPresenter.ContentProperty && 715target is ContentPresenter) ||
System\Windows\Data\BindingExpressionBase.cs (1)
2097targetDP == ContentPresenter.ContentProperty ||
System\Windows\DataTemplate.cs (2)
167get { return typeof(ContentPresenter); } 191if (!(templatedParent is ContentPresenter))
System\Windows\FrameworkElement.cs (2)
1435object dataType = ContentPresenter.DataTypeForItem(item, target, out type); 6338_contentPresenterDType = DependencyObjectType.FromSystemTypeInternal(typeof(ContentPresenter));
System\Windows\FrameworkElementFactory.cs (10)
1168if (typeof(ContentPresenter).IsAssignableFrom(_type)) 1176object o = GetValue(ContentPresenter.ContentSourceProperty); 1180if (!String.IsNullOrEmpty(prefix) && !IsValueDefined(ContentPresenter.ContentProperty)) 1200SetValue(ContentPresenter.ContentProperty, new TemplateBindingExtension(dpContent)); 1204if (!IsValueDefined(ContentPresenter.ContentTemplateProperty) && 1205!IsValueDefined(ContentPresenter.ContentTemplateSelectorProperty) && 1206!IsValueDefined(ContentPresenter.ContentStringFormatProperty)) 1209SetValue(ContentPresenter.ContentTemplateProperty, new TemplateBindingExtension(dpContentTemplate)); 1211SetValue(ContentPresenter.ContentTemplateSelectorProperty, new TemplateBindingExtension(dpContentTemplateSelector)); 1213SetValue(ContentPresenter.ContentStringFormatProperty, new TemplateBindingExtension(dpContentStringFormat));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
198case 102: t = () => typeof(ContentPresenter); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
2025Type type = typeof(System.Windows.Controls.ContentPresenter); 2026DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentProperty; 2028this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2043Type type = typeof(System.Windows.Controls.ContentPresenter); 2044DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentSourceProperty; 2046this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2060Type type = typeof(System.Windows.Controls.ContentPresenter); 2061DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentTemplateProperty; 2063this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2076Type type = typeof(System.Windows.Controls.ContentPresenter); 2077DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentTemplateSelectorProperty; 2079this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2092Type type = typeof(System.Windows.Controls.ContentPresenter); 2093DependencyProperty dp = System.Windows.Controls.ContentPresenter.RecognizesAccessKeyProperty; 2095this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2921typeof(System.Windows.Controls.ContentPresenter),
System\Windows\Markup\KnownTypes.cs (6)
1718return System.Windows.Controls.ContentPresenter.ContentProperty; 1720return System.Windows.Controls.ContentPresenter.ContentSourceProperty; 1722return System.Windows.Controls.ContentPresenter.ContentTemplateProperty; 1724return System.Windows.Controls.ContentPresenter.ContentTemplateSelectorProperty; 1726return System.Windows.Controls.ContentPresenter.RecognizesAccessKeyProperty; 5656case KnownElements.ContentPresenter: t = typeof(System.Windows.Controls.ContentPresenter); break;
System\Windows\Navigation\NavigationWindow.cs (1)
54[TemplatePart(Name = "PART_NavWinCP", Type = typeof(ContentPresenter))]
System\Windows\StyleHelper.cs (5)
451StyleHelper.IsSetOnContainer(ContentPresenter.TemplateProperty, ref containerDependents, true)) 2114walkNode = (walkNode is ContentPresenter) ? null: nextParent; 3136dp != ContentPresenter.TemplateProperty); 4719ContentPresenter cp = container as ContentPresenter;
System\Windows\TemplateContent.cs (8)
506if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 563else if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 620typeof(ContentPresenter). 678if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) 1253pv.Property = ContentPresenter.ContentProperty; 1274pv.Property = ContentPresenter.ContentTemplateProperty; 1290pv.Property = ContentPresenter.ContentTemplateSelectorProperty; 1306pv.Property = ContentPresenter.ContentStringFormatProperty;
System\Windows\TreeWalkHelper.cs (2)
559ContentPresenter contentPresenter = fe as ContentPresenter;
System.Windows.Controls.Ribbon (29)
Microsoft\Windows\Automation\Peers\RibbonTitleAutomationPeer.cs (2)
51ContentPresenter cp = Owner as ContentPresenter;
Microsoft\Windows\Automation\Peers\RibbonTwoLineTextAutomationPeer.cs (1)
57if (templatedParent == null || templatedParent is ContentPresenter)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
50[TemplatePart(Name = Ribbon.TitleHostTemplateName, Type = typeof(ContentPresenter))] 52[TemplatePart(Name = Ribbon.HelpPaneTemplateName, Type = typeof(ContentPresenter))]
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (6)
34[TemplatePart(Name = RibbonApplicationMenu.FooterPaneTemplateName, Type = typeof(ContentPresenter))] 35[TemplatePart(Name = RibbonApplicationMenu.AuxiliaryPaneTemplateName, Type = typeof(ContentPresenter))] 55private ContentPresenter _footerPaneHost; 60private ContentPresenter _auxiliaryPaneHost; 305_footerPaneHost = this.GetTemplateChild(FooterPaneTemplateName) as ContentPresenter; 306_auxiliaryPaneHost = this.GetTemplateChild(AuxiliaryPaneTemplateName) as ContentPresenter;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
64text.SetValue(TextBlock.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty));
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
28[TemplatePart(Name = CurrentFilterItemTemplatePartName, Type = typeof(ContentPresenter))]
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (5)
51[TemplatePart(Name = FilterContentPaneTemplatePartName, Type = typeof(ContentPresenter))] 121_filterContentPane = GetTemplateChild(FilterContentPaneTemplatePartName) as ContentPresenter; 2107internal ContentPresenter FilterContentPane 2782ContentPresenter filterPane = FilterContentPane; 3236private ContentPresenter _filterContentPane;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (4)
44[TemplatePart(Name = HeaderPresenterName, Type = typeof(ContentPresenter))] 214_headerPresenter = (ContentPresenter)GetTemplateChild(HeaderPresenterName); 660internal ContentPresenter HeaderPresenter 673private ContentPresenter _headerPresenter;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
44[TemplatePart(Name = RibbonGroup.HeaderContentPresenterTemplatePartName, Type = typeof(ContentPresenter))] 125_headerContentPresenter = this.GetTemplateChild(HeaderContentPresenterTemplatePartName) as ContentPresenter; 699internal ContentPresenter HeaderContentPresenter 1377private ContentPresenter _headerContentPresenter; // Header
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (3)
680ContentPresenter filterContentPane = gallery.FilterContentPane; 1503if (fe != null && fe.TemplatedParent != null && !(fe.TemplatedParent is ContentPresenter)) 1882feOriginal.TemplatedParent is ContentPresenter)