70 references to ContentProperty
PresentationFramework (57)
System\Windows\Controls\ContentControl.cs (4)
139if (ContentIsItem || !HasNonDefaultValue(ContentProperty)) 179return ReadLocalValue(ContentProperty) != DependencyProperty.UnsetValue; 249get { return GetValue(ContentProperty); } 250set { SetValue(ContentProperty, value); }
System\Windows\Controls\ContentPresenter.cs (3)
160ContentControl.ContentProperty.AddOwner( 172get { return GetValue(ContentControl.ContentProperty); } 173set { SetValue(ContentControl.ContentProperty, value); }
System\Windows\Controls\Frame.cs (2)
124ContentProperty.OverrideMetadata( 568SetCurrentValueInternal(ContentProperty, e.Content);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
950parentAsGVCH.ClearValue(ContentControl.ContentProperty); 1398header.ClearValue(ContentControl.ContentProperty);
System\Windows\Controls\GridViewRowPresenter.cs (1)
65ContentControl.ContentProperty.AddOwner(
System\Windows\Controls\GroupItem.cs (1)
205if (ContentIsItem || !HasNonDefaultValue(ContentProperty))
System\Windows\Controls\HeaderedContentControl.cs (1)
336if (ContentIsItem || !HasNonDefaultValue(ContentProperty))
System\Windows\Controls\Page.cs (1)
134ContentControl.ContentProperty.AddOwner(
System\Windows\Controls\PopupControlService.cs (2)
460_currentToolTip.SetBinding(ToolTip.ContentProperty, binding); 650BindingOperations.ClearBinding(tooltip, ToolTip.ContentProperty);
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\DataGridColumnHeader.cs (5)
34ContentProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContent)); 113DataGridHelper.TransferProperty(this, ContentProperty); 414else if (e.Property == DataGridColumn.HeaderProperty || e.Property == ContentProperty) 416DataGridHelper.TransferProperty(this, ContentProperty); 614ContentProperty,
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
125ContentProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContent)); 236DataGridHelper.TransferProperty(this, ContentProperty); 264if (e.Property == DataGridRow.HeaderProperty || e.Property == ContentProperty) 266DataGridHelper.TransferProperty(this, ContentProperty); 329ContentProperty,
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
98elementContent.SetBinding(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\ScrollViewer.cs (2)
2713content.SetValue(ContentProperty, new TemplateBindingExtension(ContentProperty));
System\Windows\Data\BindingExpressionBase.cs (1)
2096if (targetDP == ContentControl.ContentProperty ||
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (22)
1941DependencyProperty dp = System.Windows.Controls.ContentControl.ContentProperty; 4180DependencyProperty dp = System.Windows.Controls.Button.ContentProperty; 4198DependencyProperty dp = System.Windows.Controls.Primitives.ButtonBase.ContentProperty; 4267DependencyProperty dp = System.Windows.Controls.CheckBox.ContentProperty; 4319DependencyProperty dp = System.Windows.Controls.ComboBoxItem.ContentProperty; 4506DependencyProperty dp = System.Windows.Controls.Expander.ContentProperty; 4693DependencyProperty dp = System.Windows.Controls.GridViewColumnHeader.ContentProperty; 4711DependencyProperty dp = System.Windows.Controls.GroupBox.ContentProperty; 4729DependencyProperty dp = System.Windows.Controls.GroupItem.ContentProperty; 4747DependencyProperty dp = System.Windows.Controls.HeaderedContentControl.ContentProperty; 4987DependencyProperty dp = System.Windows.Controls.Label.ContentProperty; 5055DependencyProperty dp = System.Windows.Controls.ListBoxItem.ContentProperty; 5107DependencyProperty dp = System.Windows.Controls.ListViewItem.ContentProperty; 5447DependencyProperty dp = System.Windows.Controls.RadioButton.ContentProperty; 5482DependencyProperty dp = System.Windows.Controls.Primitives.RepeatButton.ContentProperty; 5568DependencyProperty dp = System.Windows.Controls.ScrollViewer.ContentProperty; 5705DependencyProperty dp = System.Windows.Controls.Primitives.StatusBarItem.ContentProperty; 5790DependencyProperty dp = System.Windows.Controls.TabItem.ContentProperty; 5927DependencyProperty dp = System.Windows.Controls.Primitives.ToggleButton.ContentProperty; 6013DependencyProperty dp = System.Windows.Controls.ToolTip.ContentProperty; 6116DependencyProperty dp = System.Windows.Controls.UserControl.ContentProperty; 6236DependencyProperty dp = System.Windows.Window.ContentProperty;
System\Windows\Markup\KnownTypes.cs (1)
1708return System.Windows.Controls.ContentControl.ContentProperty;
System\Windows\Navigation\NavigationWindow.cs (1)
162ContentProperty.OverrideMetadata(
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
82filterToggleButton.SetBinding(RibbonToggleButton.ContentProperty, currentFilterBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1500dummyElement.SetBinding(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (5)
44ContentProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnContentChanged), new CoerceValueCallback(CoerceContent))); 758KeyTipAndContentSyncHelper.Sync(this, ContentProperty); 763KeyTipAndContentSyncHelper.OnKeyTipChanged((ISyncKeyTipAndContent)d, ContentProperty); 768return KeyTipAndContentSyncHelper.CoerceKeyTip((ISyncKeyTipAndContent)d, baseValue, ContentProperty); 773KeyTipAndContentSyncHelper.OnContentPropertyChanged((ISyncKeyTipAndContent)d, ContentProperty);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1673new PropertyAndTransferMode () { Property = ContentControl.ContentProperty, Mode = TransferMode.AlwaysTransfer },
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
43ContentProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceContent)); 416PropertyHelper.TransferProperty(this, ContentProperty); 425else if (e.Property == ContentProperty || e.Property == RibbonTab.HeaderProperty) 427PropertyHelper.TransferProperty(this, ContentProperty); 567ContentProperty,