16 types derived from ContentControl
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
ViewHostingControl.cs (1)
17internal class ViewHostingControl : ContentControl
PresentationFramework (12)
System\Windows\Controls\DataGridCell.cs (1)
17public class DataGridCell : ContentControl, IProvideDataGridColumn
System\Windows\Controls\Frame.cs (1)
91public class Frame : ContentControl, INavigator, INavigatorImpl, IJournalNavigationScopeHost, IDownloader, IJournalState, IAddChild, IUriContext
System\Windows\Controls\GroupItem.cs (1)
21public class GroupItem : ContentControl, IHierarchicalVirtualizationAndScrollInfo, IContainItemStorage
System\Windows\Controls\HeaderedContentControl.cs (1)
25public class HeaderedContentControl : ContentControl
System\Windows\Controls\Label.cs (1)
31public class Label : ContentControl
System\Windows\Controls\ListBoxItem.cs (1)
25public class ListBoxItem : ContentControl
System\Windows\Controls\Primitives\ButtonBase.cs (1)
21public abstract class ButtonBase : ContentControl, ICommandSource
System\Windows\Controls\Primitives\StatusBarItem.cs (1)
17public class StatusBarItem : ContentControl
System\Windows\Controls\ScrollViewer.cs (1)
63public class ScrollViewer : ContentControl
System\Windows\Controls\ToolTip.cs (1)
19public class ToolTip : ContentControl
System\Windows\Controls\UserControl.cs (1)
15public class UserControl : ContentControl
System\Windows\Window.cs (1)
37public class Window : ContentControl, IWindowService
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
28public class RibbonControl : ContentControl
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (1)
31public class RibbonGalleryItem : ContentControl, ISyncKeyTipAndContent
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
29public class RibbonTabHeader : ContentControl
8 instantiations of ContentControl
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
41private readonly ContentControl _responseControl = new();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
189var holder = new ContentControl
PresentationFramework (4)
MS\Internal\Documents\DocumentGridPage.cs (1)
287_documentContainer = new ContentControl();
System\Windows\Controls\Primitives\CalendarItem.cs (1)
954FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2892bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ContentControl(); };
System\Windows\Markup\KnownTypes.cs (1)
1183case KnownElements.ContentControl: o = new System.Windows.Controls.ContentControl(); break;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
1430ContentControl dummyElement = new ContentControl(); 1457return GetSelectableValueFromItem(item, new ContentControl());
120 references to ContentControl
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
41private readonly ContentControl _responseControl = new();
Microsoft.VisualStudio.LanguageServices (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\DocumentOutline\DocumentOutlineView.g.cs (2)
56internal System.Windows.Controls.ContentControl Commands; 119this.Commands = ((System.Windows.Controls.ContentControl)(target));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
189var holder = new ContentControl
PresentationFramework (91)
MS\Internal\AppModel\NavigationHelper.cs (1)
15internal static Visual FindRootViewer(ContentControl navigator, string contentPresenterName)
MS\Internal\Controls\ModelTreeEnumerator.cs (2)
141internal ContentModelTreeEnumerator(ContentControl contentControl, object content) : base(content) 156private ContentControl _owner;
MS\Internal\Data\ObjectRef.cs (3)
232ContentControl cc = LogicalTreeHelper.GetParent(fo.DO) as ContentControl; 479if (!(parent is ContentControl || parent is HeaderedItemsControl))
MS\Internal\Documents\Application\DocumentApplicationJournalEntry.cs (2)
62ContentControl navigator = (ContentControl)navigationService.INavigatorHost;
MS\Internal\Documents\DocumentGridPage.cs (2)
233_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(typeof(ContentControl))); 381private ContentControl _documentContainer;
System\Windows\Controls\ComboBox.cs (2)
869ContentControl contentControl = item as ContentControl;
System\Windows\Controls\ContentControl.cs (16)
42DefaultStyleKeyProperty.OverrideMetadata(typeof(ContentControl), new FrameworkPropertyMetadata(typeof(ContentControl))); 43_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ContentControl)); 229typeof(ContentControl), 249ContentControl ctrl = (ContentControl) d; 303typeof(ContentControl), 337typeof(ContentControl), 358ContentControl ctrl = (ContentControl)d; 382typeof(ContentControl), 407ContentControl ctrl = (ContentControl) d; 431typeof(ContentControl), 454ContentControl ctrl = (ContentControl)d;
System\Windows\Controls\ContentPresenter.cs (9)
151ContentControl.ContentProperty.AddOwner( 163get { return GetValue(ContentControl.ContentProperty); } 164set { SetValue(ContentControl.ContentProperty, value); } 249ContentControl.ContentTemplateProperty.AddOwner( 261get { return (DataTemplate) GetValue(ContentControl.ContentTemplateProperty); } 262set { SetValue(ContentControl.ContentTemplateProperty, value); } 296ContentControl.ContentTemplateSelectorProperty.AddOwner( 312get { return (DataTemplateSelector) GetValue(ContentControl.ContentTemplateSelectorProperty); } 313set { SetValue(ContentControl.ContentTemplateSelectorProperty, value); }
System\Windows\Controls\DocumentViewer.cs (3)
32[TemplatePart(Name = "PART_FindToolBarHost", Type = typeof(ContentControl))] 2137ContentControl findHost = this.Template.FindName(_findToolBarHostName, this) as ContentControl;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
947parentAsGVCH.ClearValue(ContentControl.ContentProperty); 1395header.ClearValue(ContentControl.ContentProperty);
System\Windows\Controls\GridViewRowPresenter.cs (7)
61ContentControl.ContentProperty.AddOwner( 332cp.ClearValue(ContentControl.ContentTemplateProperty); 345cp.ClearValue(ContentControl.ContentTemplateSelectorProperty); 613ContentControl parent; 614if ((parent = TemplatedParent as ContentControl) != null) 640ContentControl parent = TemplatedParent as ContentControl;
System\Windows\Controls\HeaderedContentControl.cs (5)
295return ContentControl.ContentObjectToString(Header); 394headerText = ContentControl.ContentObjectToString(Header); 395contentText = ContentControl.ContentObjectToString(Content); 403headerText = ContentControl.ContentObjectToString(Header); 404contentText = ContentControl.ContentObjectToString(Content);
System\Windows\Controls\HeaderedItemsControl.cs (3)
321return ContentControl.ContentObjectToString(Header); 341headerText = ContentControl.ContentObjectToString(Header); 352headerText = ContentControl.ContentObjectToString(Header);
System\Windows\Controls\ItemsControl.cs (4)
1595ContentControl cc; 1604else if ((cc = element as ContentControl) != null) 1631ContentControl cc; 1640else if ((cc = element as ContentControl) != null)
System\Windows\Controls\Page.cs (1)
127ContentControl.ContentProperty.AddOwner(
System\Windows\Controls\Primitives\CalendarButton.cs (1)
161SetCurrentValueInternal(ContentControl.ContentProperty, value);
System\Windows\Controls\Primitives\CalendarDayButton.cs (1)
255SetCurrentValueInternal(ContentControl.ContentProperty, value);
System\Windows\Controls\Primitives\DatePickerTextBox.cs (4)
15[TemplatePart(Name = DatePickerTextBox.ElementContentName, Type = typeof(ContentControl))] 25private ContentControl elementContent; 83elementContent = ExtractTemplatePart<ContentControl>(ElementContentName); 93elementContent.SetBinding(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\StickyNote.cs (1)
57[TemplatePart(Name = SNBConstants.c_ContentControlId, Type = typeof(ContentControl))]
System\Windows\Data\BindingExpressionBase.cs (1)
2088if (targetDP == ContentControl.ContentProperty ||
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
194case 100: t = () => typeof(ContentControl); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
1938Type type = typeof(System.Windows.Controls.ContentControl); 1939DependencyProperty dp = System.Windows.Controls.ContentControl.ContentProperty; 1941this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType 1956Type type = typeof(System.Windows.Controls.ContentControl); 1957DependencyProperty dp = System.Windows.Controls.ContentControl.ContentTemplateProperty; 1959this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType 1972Type type = typeof(System.Windows.Controls.ContentControl); 1973DependencyProperty dp = System.Windows.Controls.ContentControl.ContentTemplateSelectorProperty; 1975this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType 1988Type type = typeof(System.Windows.Controls.ContentControl); 1989DependencyProperty dp = System.Windows.Controls.ContentControl.HasContentProperty; 1991this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2890typeof(System.Windows.Controls.ContentControl),
System\Windows\Markup\KnownTypes.cs (5)
1708return System.Windows.Controls.ContentControl.ContentProperty; 1710return System.Windows.Controls.ContentControl.ContentTemplateProperty; 1712return System.Windows.Controls.ContentControl.ContentTemplateSelectorProperty; 1714return System.Windows.Controls.ContentControl.HasContentProperty; 5654case KnownElements.ContentControl: t = typeof(System.Windows.Controls.ContentControl); break;
System\Windows\Navigation\NavigationService.cs (2)
4502ContentControl cc = dobj as ContentControl;
PresentationUI (10)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (10)
708ContentControl host = GetTemplateChild("ZoomComboBoxHost") as ContentControl; 719_zoomComboBox.SetBinding(ContentControl.WidthProperty, bind); 723_zoomComboBox.SetBinding(ContentControl.HeightProperty, bind); 760ContentControl host = GetTemplateChild("PageTextBoxHost") as ContentControl; 771_pageTextBox.SetBinding(ContentControl.WidthProperty, bind); 775_pageTextBox.SetBinding(ContentControl.HeightProperty, bind); 1030ContentControl host = GetTemplateChild("PART_FindToolBarHost") as ContentControl;
System.Windows.Controls.Ribbon (15)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
520ContentControl contentControl = item as ContentControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (3)
1430ContentControl dummyElement = new ContentControl(); 1463private object GetSelectableValueFromItem(object item, ContentControl dummyElement) 1498dummyElement.SetBinding(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
46[TemplatePart(Name = RibbonGroup.TemplateContentControlTemplatePartName, Type = typeof(ContentControl))] 124_templateContentControl = GetTemplateChild(TemplateContentControlTemplatePartName) as ContentControl; 1375private ContentControl _templateContentControl;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (5)
1668new PropertyAndTransferMode () { Property = ContentControl.ContentProperty, Mode = TransferMode.AlwaysTransfer }, 1669new PropertyAndTransferMode () { Property = ContentControl.ContentStringFormatProperty, Mode = TransferMode.AlwaysTransfer }, 1670new PropertyAndTransferMode () { Property = ContentControl.ContentTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1671new PropertyAndTransferMode () { Property = ContentControl.ContentTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 2054if (original is ContentControl)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
628ContentControl cc; 637else if ((cc = o as ContentControl) != null)