70 references to ContentProperty
PresentationFramework (57)
System\Windows\Controls\ContentControl.cs (4)
130if (ContentIsItem || !HasNonDefaultValue(ContentProperty)) 170return ReadLocalValue(ContentProperty) != DependencyProperty.UnsetValue; 240get { return GetValue(ContentProperty); } 241set { SetValue(ContentProperty, value); }
System\Windows\Controls\ContentPresenter.cs (3)
151ContentControl.ContentProperty.AddOwner( 163get { return GetValue(ContentControl.ContentProperty); } 164set { SetValue(ContentControl.ContentProperty, value); }
System\Windows\Controls\Frame.cs (2)
112ContentProperty.OverrideMetadata( 556SetCurrentValueInternal(ContentProperty, e.Content);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
947parentAsGVCH.ClearValue(ContentControl.ContentProperty); 1395header.ClearValue(ContentControl.ContentProperty);
System\Windows\Controls\GridViewRowPresenter.cs (1)
61ContentControl.ContentProperty.AddOwner(
System\Windows\Controls\GroupItem.cs (1)
197if (ContentIsItem || !HasNonDefaultValue(ContentProperty))
System\Windows\Controls\HeaderedContentControl.cs (1)
331if (ContentIsItem || !HasNonDefaultValue(ContentProperty))
System\Windows\Controls\Page.cs (1)
127ContentControl.ContentProperty.AddOwner(
System\Windows\Controls\PopupControlService.cs (2)
450_currentToolTip.SetBinding(ToolTip.ContentProperty, binding); 640BindingOperations.ClearBinding(tooltip, ToolTip.ContentProperty);
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\DataGridColumnHeader.cs (5)
29ContentProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContent)); 108DataGridHelper.TransferProperty(this, ContentProperty); 409else if (e.Property == DataGridColumn.HeaderProperty || e.Property == ContentProperty) 411DataGridHelper.TransferProperty(this, ContentProperty); 609ContentProperty,
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
120ContentProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContent)); 231DataGridHelper.TransferProperty(this, ContentProperty); 259if (e.Property == DataGridRow.HeaderProperty || e.Property == ContentProperty) 261DataGridHelper.TransferProperty(this, ContentProperty); 324ContentProperty,
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
93elementContent.SetBinding(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\ScrollViewer.cs (2)
2705content.SetValue(ContentProperty, new TemplateBindingExtension(ContentProperty));
System\Windows\Data\BindingExpressionBase.cs (1)
2088if (targetDP == ContentControl.ContentProperty ||
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (22)
1939DependencyProperty dp = System.Windows.Controls.ContentControl.ContentProperty; 4178DependencyProperty dp = System.Windows.Controls.Button.ContentProperty; 4196DependencyProperty dp = System.Windows.Controls.Primitives.ButtonBase.ContentProperty; 4265DependencyProperty dp = System.Windows.Controls.CheckBox.ContentProperty; 4317DependencyProperty dp = System.Windows.Controls.ComboBoxItem.ContentProperty; 4504DependencyProperty dp = System.Windows.Controls.Expander.ContentProperty; 4691DependencyProperty dp = System.Windows.Controls.GridViewColumnHeader.ContentProperty; 4709DependencyProperty dp = System.Windows.Controls.GroupBox.ContentProperty; 4727DependencyProperty dp = System.Windows.Controls.GroupItem.ContentProperty; 4745DependencyProperty dp = System.Windows.Controls.HeaderedContentControl.ContentProperty; 4985DependencyProperty dp = System.Windows.Controls.Label.ContentProperty; 5053DependencyProperty dp = System.Windows.Controls.ListBoxItem.ContentProperty; 5105DependencyProperty dp = System.Windows.Controls.ListViewItem.ContentProperty; 5445DependencyProperty dp = System.Windows.Controls.RadioButton.ContentProperty; 5480DependencyProperty dp = System.Windows.Controls.Primitives.RepeatButton.ContentProperty; 5566DependencyProperty dp = System.Windows.Controls.ScrollViewer.ContentProperty; 5703DependencyProperty dp = System.Windows.Controls.Primitives.StatusBarItem.ContentProperty; 5788DependencyProperty dp = System.Windows.Controls.TabItem.ContentProperty; 5925DependencyProperty dp = System.Windows.Controls.Primitives.ToggleButton.ContentProperty; 6011DependencyProperty dp = System.Windows.Controls.ToolTip.ContentProperty; 6114DependencyProperty dp = System.Windows.Controls.UserControl.ContentProperty; 6234DependencyProperty dp = System.Windows.Window.ContentProperty;
System\Windows\Markup\KnownTypes.cs (1)
1708return System.Windows.Controls.ContentControl.ContentProperty;
System\Windows\Navigation\NavigationWindow.cs (1)
146ContentProperty.OverrideMetadata(
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
80filterToggleButton.SetBinding(RibbonToggleButton.ContentProperty, currentFilterBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1498dummyElement.SetBinding(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (5)
42ContentProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnContentChanged), new CoerceValueCallback(CoerceContent))); 756KeyTipAndContentSyncHelper.Sync(this, ContentProperty); 761KeyTipAndContentSyncHelper.OnKeyTipChanged((ISyncKeyTipAndContent)d, ContentProperty); 766return KeyTipAndContentSyncHelper.CoerceKeyTip((ISyncKeyTipAndContent)d, baseValue, ContentProperty); 771KeyTipAndContentSyncHelper.OnContentPropertyChanged((ISyncKeyTipAndContent)d, ContentProperty);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1668new PropertyAndTransferMode () { Property = ContentControl.ContentProperty, Mode = TransferMode.AlwaysTransfer },
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
41ContentProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceContent)); 414PropertyHelper.TransferProperty(this, ContentProperty); 423else if (e.Property == ContentProperty || e.Property == RibbonTab.HeaderProperty) 425PropertyHelper.TransferProperty(this, ContentProperty); 565ContentProperty,