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