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