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)
24public class DataGridCell : ContentControl, IProvideDataGridColumn
System\Windows\Controls\Frame.cs (1)
103public class Frame : ContentControl, INavigator, INavigatorImpl, IJournalNavigationScopeHost, IDownloader, IJournalState, IAddChild, IUriContext
System\Windows\Controls\GroupItem.cs (1)
29public class GroupItem : ContentControl, IHierarchicalVirtualizationAndScrollInfo, IContainItemStorage
System\Windows\Controls\HeaderedContentControl.cs (1)
30public class HeaderedContentControl : ContentControl
System\Windows\Controls\Label.cs (1)
36public class Label : ContentControl
System\Windows\Controls\ListBoxItem.cs (1)
32public class ListBoxItem : ContentControl
System\Windows\Controls\Primitives\ButtonBase.cs (1)
32public abstract class ButtonBase : ContentControl, ICommandSource
System\Windows\Controls\Primitives\StatusBarItem.cs (1)
18public class StatusBarItem : ContentControl
System\Windows\Controls\ScrollViewer.cs (1)
71public class ScrollViewer : ContentControl
System\Windows\Controls\ToolTip.cs (1)
32public class ToolTip : ContentControl
System\Windows\Controls\UserControl.cs (1)
21public class UserControl : ContentControl
System\Windows\Window.cs (1)
50public class Window : ContentControl, IWindowService
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
32public class RibbonControl : ContentControl
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (1)
33public class RibbonGalleryItem : ContentControl, ISyncKeyTipAndContent
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
31public 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)
300_documentContainer = new ContentControl();
System\Windows\Controls\Primitives\CalendarItem.cs (1)
959FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2894bamlType.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)
1432ContentControl dummyElement = new ContentControl(); 1459return 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)
22internal static Visual FindRootViewer(ContentControl navigator, string contentPresenterName)
MS\Internal\Controls\ModelTreeEnumerator.cs (2)
148internal ContentModelTreeEnumerator(ContentControl contentControl, object content) : base(content) 163private ContentControl _owner;
MS\Internal\Data\ObjectRef.cs (3)
238ContentControl cc = LogicalTreeHelper.GetParent(fo.DO) as ContentControl; 485if (!(parent is ContentControl || parent is HeaderedItemsControl))
MS\Internal\Documents\Application\DocumentApplicationJournalEntry.cs (2)
67ContentControl navigator = (ContentControl)navigationService.INavigatorHost;
MS\Internal\Documents\DocumentGridPage.cs (2)
246_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(typeof(ContentControl))); 394private ContentControl _documentContainer;
System\Windows\Controls\ComboBox.cs (2)
879ContentControl contentControl = item as ContentControl;
System\Windows\Controls\ContentControl.cs (16)
51DefaultStyleKeyProperty.OverrideMetadata(typeof(ContentControl), new FrameworkPropertyMetadata(typeof(ContentControl))); 52_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ContentControl)); 238typeof(ContentControl), 258ContentControl ctrl = (ContentControl) d; 312typeof(ContentControl), 346typeof(ContentControl), 367ContentControl ctrl = (ContentControl)d; 391typeof(ContentControl), 416ContentControl ctrl = (ContentControl) d; 440typeof(ContentControl), 463ContentControl ctrl = (ContentControl)d;
System\Windows\Controls\ContentPresenter.cs (9)
160ContentControl.ContentProperty.AddOwner( 172get { return GetValue(ContentControl.ContentProperty); } 173set { SetValue(ContentControl.ContentProperty, value); } 258ContentControl.ContentTemplateProperty.AddOwner( 270get { return (DataTemplate) GetValue(ContentControl.ContentTemplateProperty); } 271set { SetValue(ContentControl.ContentTemplateProperty, value); } 305ContentControl.ContentTemplateSelectorProperty.AddOwner( 321get { return (DataTemplateSelector) GetValue(ContentControl.ContentTemplateSelectorProperty); } 322set { SetValue(ContentControl.ContentTemplateSelectorProperty, value); }
System\Windows\Controls\DocumentViewer.cs (3)
44[TemplatePart(Name = "PART_FindToolBarHost", Type = typeof(ContentControl))] 2149ContentControl findHost = this.Template.FindName(_findToolBarHostName, this) as ContentControl;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
950parentAsGVCH.ClearValue(ContentControl.ContentProperty); 1398header.ClearValue(ContentControl.ContentProperty);
System\Windows\Controls\GridViewRowPresenter.cs (7)
65ContentControl.ContentProperty.AddOwner( 336cp.ClearValue(ContentControl.ContentTemplateProperty); 349cp.ClearValue(ContentControl.ContentTemplateSelectorProperty); 617ContentControl parent; 618if ((parent = TemplatedParent as ContentControl) != null) 644ContentControl parent = TemplatedParent as ContentControl;
System\Windows\Controls\HeaderedContentControl.cs (5)
300return ContentControl.ContentObjectToString(Header); 399headerText = ContentControl.ContentObjectToString(Header); 400contentText = ContentControl.ContentObjectToString(Content); 408headerText = ContentControl.ContentObjectToString(Header); 409contentText = ContentControl.ContentObjectToString(Content);
System\Windows\Controls\HeaderedItemsControl.cs (3)
326return ContentControl.ContentObjectToString(Header); 346headerText = ContentControl.ContentObjectToString(Header); 357headerText = ContentControl.ContentObjectToString(Header);
System\Windows\Controls\ItemsControl.cs (4)
1604ContentControl cc; 1613else if ((cc = element as ContentControl) != null) 1640ContentControl cc; 1649else if ((cc = element as ContentControl) != null)
System\Windows\Controls\Page.cs (1)
134ContentControl.ContentProperty.AddOwner(
System\Windows\Controls\Primitives\CalendarButton.cs (1)
164SetCurrentValueInternal(ContentControl.ContentProperty, value);
System\Windows\Controls\Primitives\CalendarDayButton.cs (1)
258SetCurrentValueInternal(ContentControl.ContentProperty, value);
System\Windows\Controls\Primitives\DatePickerTextBox.cs (4)
20[TemplatePart(Name = DatePickerTextBox.ElementContentName, Type = typeof(ContentControl))] 30private ContentControl elementContent; 88elementContent = ExtractTemplatePart<ContentControl>(ElementContentName); 98elementContent.SetBinding(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\StickyNote.cs (1)
73[TemplatePart(Name = SNBConstants.c_ContentControlId, Type = typeof(ContentControl))]
System\Windows\Data\BindingExpressionBase.cs (1)
2096if (targetDP == ContentControl.ContentProperty ||
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
196case 100: t = () => typeof(ContentControl); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (12)
1940Type type = typeof(System.Windows.Controls.ContentControl); 1941DependencyProperty dp = System.Windows.Controls.ContentControl.ContentProperty; 1943this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType 1958Type type = typeof(System.Windows.Controls.ContentControl); 1959DependencyProperty dp = System.Windows.Controls.ContentControl.ContentTemplateProperty; 1961this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType 1974Type type = typeof(System.Windows.Controls.ContentControl); 1975DependencyProperty dp = System.Windows.Controls.ContentControl.ContentTemplateSelectorProperty; 1977this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType 1990Type type = typeof(System.Windows.Controls.ContentControl); 1991DependencyProperty dp = System.Windows.Controls.ContentControl.HasContentProperty; 1993this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2892typeof(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)
4513ContentControl cc = dobj as ContentControl;
PresentationUI (10)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (10)
715ContentControl host = GetTemplateChild("ZoomComboBoxHost") as ContentControl; 726_zoomComboBox.SetBinding(ContentControl.WidthProperty, bind); 730_zoomComboBox.SetBinding(ContentControl.HeightProperty, bind); 767ContentControl host = GetTemplateChild("PageTextBoxHost") as ContentControl; 778_pageTextBox.SetBinding(ContentControl.WidthProperty, bind); 782_pageTextBox.SetBinding(ContentControl.HeightProperty, bind); 1037ContentControl host = GetTemplateChild("PART_FindToolBarHost") as ContentControl;
System.Windows.Controls.Ribbon (15)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
522ContentControl contentControl = item as ContentControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (3)
1432ContentControl dummyElement = new ContentControl(); 1465private object GetSelectableValueFromItem(object item, ContentControl dummyElement) 1500dummyElement.SetBinding(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
49[TemplatePart(Name = RibbonGroup.TemplateContentControlTemplatePartName, Type = typeof(ContentControl))] 127_templateContentControl = GetTemplateChild(TemplateContentControlTemplatePartName) as ContentControl; 1378private ContentControl _templateContentControl;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (5)
1673new PropertyAndTransferMode () { Property = ContentControl.ContentProperty, Mode = TransferMode.AlwaysTransfer }, 1674new PropertyAndTransferMode () { Property = ContentControl.ContentStringFormatProperty, Mode = TransferMode.AlwaysTransfer }, 1675new PropertyAndTransferMode () { Property = ContentControl.ContentTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1676new PropertyAndTransferMode () { Property = ContentControl.ContentTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 2059if (original is ContentControl)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
633ContentControl cc; 642else if ((cc = o as ContentControl) != null)