2 types derived from ContentPresenter
PresentationFramework (2)
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
17public class DataGridDetailsPresenter : ContentPresenter
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
35sealed public class ScrollContentPresenter : ContentPresenter, IScrollInfo
9 instantiations of ContentPresenter
PresentationFramework (6)
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
176ContentPresenter innerContentPresenter = new ContentPresenter();
src\Framework\System\Windows\Controls\DataGridTemplateColumn.cs (1)
172ContentPresenter contentPresenter = new ContentPresenter();
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
601ContentPresenter cp = new ContentPresenter();
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
1584return new ContentPresenter();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2919bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ContentPresenter(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1186case KnownElements.ContentPresenter: o = new System.Windows.Controls.ContentPresenter(); break;
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\CorrelatesOnValueEditor.cs (1)
69var presenter = new ContentPresenter()
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
139this.Content = new ContentPresenter()
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionValueEditor.cs (1)
62ContentPresenter contentPresenter = new ContentPresenter()
148 references to ContentPresenter
PresentationFramework (127)
src\Framework\MS\Internal\AppModel\NavigationHelper.cs (2)
24ContentPresenter cp = null; 27cp = (ContentPresenter)navigator.Template.FindName(contentPresenterName, navigator);
src\Framework\MS\Internal\Data\DisplayMemberTemplateSelector.cs (2)
48FrameworkElementFactory text = ContentPresenter.CreateTextBlockFactory(); 63FrameworkElementFactory text = ContentPresenter.CreateTextBlockFactory();
src\Framework\MS\Internal\Data\ObjectRef.cs (4)
271ContentPresenter cp = VisualTreeHelper.IsVisualType(dd) ? VisualTreeHelper.GetParent(dd) as ContentPresenter : null; 489ContentPresenter cp; 491if ((cp = d as ContentPresenter) != null)
src\Framework\MS\Internal\Helper.cs (1)
452if (d is System.Windows.Controls.ContentPresenter)
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
25internal GridViewCellAutomationPeer(ContentPresenter owner, ListViewAutomationPeer parent)
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
69if (ele is ContentPresenter) 71peer = new GridViewCellAutomationPeer((ContentPresenter)ele, _listviewAP);
src\Framework\System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (1)
45if (templatedParent == null || templatedParent is ContentPresenter)
src\Framework\System\Windows\Automation\Peers\TabItemAutomationPeer.cs (1)
70ContentPresenter contentHost = parentTabControl.SelectedContentPresenter;
src\Framework\System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (1)
73if (templatedParent == null || templatedParent is ContentPresenter)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
955itemTemplate = ContentPresenter.StringContentTemplate; 964itemTemplate = ContentPresenter.StringContentTemplate;
src\Framework\System\Windows\Controls\ContentPresenter.cs (25)
139typeof(ContentPresenter), 163typeof(ContentPresenter), 183ContentPresenter ctrl = (ContentPresenter)d; 261typeof(ContentPresenter), 281ContentPresenter ctrl = (ContentPresenter)d; 308typeof(ContentPresenter), 342ContentPresenter ctrl = (ContentPresenter) d; 370typeof(ContentPresenter), 393ContentPresenter ctrl = (ContentPresenter)d; 420typeof(ContentPresenter), 784typeof(ContentPresenter), 809ContentPresenter c = (ContentPresenter) d; 965static TextBlock CreateTextBlock(ContentPresenter container) 1011object content = ((ContentPresenter)container).Content; 1050ContentPresenter cp = (ContentPresenter)container; 1064private UIElement DefaultExpansion(object content, ContentPresenter container) 1085private void DoDefaultExpansion(TextBlock textBlock, object content, ContentPresenter container) 1179template = ((ContentPresenter)container).SelectTemplateForString(s); 1183template = ((ContentPresenter)container).SelectTemplateForXML();
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
401ContentPresenter cp = oldContent as ContentPresenter;
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (2)
176ContentPresenter innerContentPresenter = new ContentPresenter(); 186ApplyContentBinding(innerContentPresenter, ContentPresenter.ContentProperty);
src\Framework\System\Windows\Controls\DataGridTemplateColumn.cs (2)
172ContentPresenter contentPresenter = new ContentPresenter(); 173BindingOperations.SetBinding(contentPresenter, ContentPresenter.ContentProperty, new Binding());
src\Framework\System\Windows\Controls\DataTemplateSelector.cs (1)
24/// <seealso cref="ContentPresenter"/> class.
src\Framework\System\Windows\Controls\Frame.cs (1)
108[TemplatePart(Name = "PART_FrameCP", Type = typeof(ContentPresenter))]
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (5)
330ContentPresenter cp = InternalChildren[index] as ContentPresenter; 601ContentPresenter cp = new ContentPresenter(); 644ContentPresenter cellAsCP; 653if ((cellAsCP = cell as ContentPresenter) != null)
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
1608ContentPresenter cp; 1620else if ((cp = element as ContentPresenter) != null) 1644ContentPresenter cp; 1656else if ((cp = element as ContentPresenter) != null)
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (4)
390ContentPresenter cp = root as ContentPresenter; 431ContentPresenter cp = root as ContentPresenter;
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2752content.SetValue(ContentPresenter.MarginProperty, new TemplateBindingExtension(PaddingProperty));
src\Framework\System\Windows\Controls\StyleSelector.cs (1)
32/// <seealso cref="ContentPresenter"/> class.
src\Framework\System\Windows\Controls\TabControl.cs (4)
39[TemplatePart(Name = "PART_SelectedContentHost", Type = typeof(ContentPresenter))] 501internal ContentPresenter SelectedContentPresenter 505return GetTemplateChild(SelectedContentHostTemplateName) as ContentPresenter; 575ContentPresenter scp = SelectedContentPresenter;
src\Framework\System\Windows\Controls\TabItem.cs (2)
314ContentPresenter selectedContentPresenter = parentTabControl.SelectedContentPresenter; 349ContentPresenter selectedContentPresenter = parentTabControl.SelectedContentPresenter;
src\Framework\System\Windows\Data\BindingExpression.cs (2)
713(TargetProperty == ContentPresenter.ContentProperty && 714target is ContentPresenter) ||
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
2088targetDP == ContentPresenter.ContentProperty ||
src\Framework\System\Windows\DataTemplate.cs (2)
168get { return typeof(ContentPresenter); } 195if (!(templatedParent is ContentPresenter))
src\Framework\System\Windows\FrameworkElement.cs (2)
1434object dataType = ContentPresenter.DataTypeForItem(item, target, out type); 6344_contentPresenterDType = DependencyObjectType.FromSystemTypeInternal(typeof(ContentPresenter));
src\Framework\System\Windows\FrameworkElementFactory.cs (10)
1192if (typeof(ContentPresenter).IsAssignableFrom(_type)) 1200object o = GetValue(ContentPresenter.ContentSourceProperty); 1204if (!String.IsNullOrEmpty(prefix) && !IsValueDefined(ContentPresenter.ContentProperty)) 1224SetValue(ContentPresenter.ContentProperty, new TemplateBindingExtension(dpContent)); 1228if (!IsValueDefined(ContentPresenter.ContentTemplateProperty) && 1229!IsValueDefined(ContentPresenter.ContentTemplateSelectorProperty) && 1230!IsValueDefined(ContentPresenter.ContentStringFormatProperty)) 1233SetValue(ContentPresenter.ContentTemplateProperty, new TemplateBindingExtension(dpContentTemplate)); 1235SetValue(ContentPresenter.ContentTemplateSelectorProperty, new TemplateBindingExtension(dpContentTemplateSelector)); 1237SetValue(ContentPresenter.ContentStringFormatProperty, new TemplateBindingExtension(dpContentStringFormat));
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
194case 102: t = () => typeof(ContentPresenter); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
2017Type type = typeof(System.Windows.Controls.ContentPresenter); 2018DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentProperty; 2020this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2035Type type = typeof(System.Windows.Controls.ContentPresenter); 2036DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentSourceProperty; 2038this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2052Type type = typeof(System.Windows.Controls.ContentPresenter); 2053DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentTemplateProperty; 2055this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2068Type type = typeof(System.Windows.Controls.ContentPresenter); 2069DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentTemplateSelectorProperty; 2071this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType 2084Type type = typeof(System.Windows.Controls.ContentPresenter); 2085DependencyProperty dp = System.Windows.Controls.ContentPresenter.RecognizesAccessKeyProperty; 2087this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2917typeof(System.Windows.Controls.ContentPresenter),
src\Framework\System\Windows\Markup\KnownTypes.cs (6)
1719return System.Windows.Controls.ContentPresenter.ContentProperty; 1721return System.Windows.Controls.ContentPresenter.ContentSourceProperty; 1723return System.Windows.Controls.ContentPresenter.ContentTemplateProperty; 1725return System.Windows.Controls.ContentPresenter.ContentTemplateSelectorProperty; 1727return System.Windows.Controls.ContentPresenter.RecognizesAccessKeyProperty; 5646case KnownElements.ContentPresenter: t = typeof(System.Windows.Controls.ContentPresenter); break;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
61[TemplatePart(Name = "PART_NavWinCP", Type = typeof(ContentPresenter))]
src\Framework\System\Windows\StyleHelper.cs (5)
451StyleHelper.IsSetOnContainer(ContentPresenter.TemplateProperty, ref containerDependents, true)) 2114walkNode = (walkNode is ContentPresenter) ? null: nextParent; 3135dp != ContentPresenter.TemplateProperty); 4719ContentPresenter cp = container as ContentPresenter;
src\Framework\System\Windows\TemplateContent.cs (8)
571if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 628else if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType)) 685typeof(ContentPresenter). 743if (typeof(ContentPresenter).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) 1317pv.Property = ContentPresenter.ContentProperty; 1338pv.Property = ContentPresenter.ContentTemplateProperty; 1354pv.Property = ContentPresenter.ContentTemplateSelectorProperty; 1370pv.Property = ContentPresenter.ContentStringFormatProperty;
src\Framework\System\Windows\TreeWalkHelper.cs (2)
554ContentPresenter contentPresenter = fe as ContentPresenter;
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\CorrelatesOnValueEditor.cs (1)
69var presenter = new ContentPresenter()
System.Activities.Presentation (20)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryLayoutContainer.cs (3)
20ContentPresenter contentPresenter = element as ContentPresenter; 26contentPresenter.SetBinding(ContentPresenter.ContentProperty, contentBinding);
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (4)
739var contentPresenterFactory = new FrameworkElementFactory(typeof(ContentPresenter)); 740contentPresenterFactory.SetBinding(ContentPresenter.ContentProperty, new Binding()); 741contentPresenterFactory.SetBinding(ContentPresenter.TagProperty, new Binding() { Converter = ModelPropertyEntryToOwnerActivityConverter, ConverterParameter = false, Path = new PropertyPath("ParentProperty") }); 745contentPresenterFactory.SetBinding(ContentPresenter.ContentTemplateProperty, binding);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (3)
355ContentPresenter AddNewRowContentPresenter 461var presenter = (ContentPresenter)sender;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionValueEditor.cs (3)
62ContentPresenter contentPresenter = new ContentPresenter() 75ContentPresenter presenter = (ContentPresenter)this.Content;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (5)
88ContentPresenter presenter; 206protected ContentPresenter ContentPresenter 285this.presenter = this.Template.FindName("PART_Content", this) as ContentPresenter; 291this.presenter.SetBinding(ContentPresenter.ContentProperty, binding); 294this.presenter.SetBinding(ContentPresenter.DataContextProperty, binding);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
360ContentPresenter presenter = VisualTreeUtils.GetTemplateChild<ContentPresenter>(this);