29 references to DataContextProperty
PresentationFramework (27)
MS\Internal\Data\ClrBindingWorker.cs (1)
81
else if (targetDP == FrameworkElement.
DataContextProperty
||
MS\Internal\Data\ObjectRef.cs (1)
375
o = el.GetValue(FrameworkElement.
DataContextProperty
);
MS\Internal\Data\PropertyPathWorker.cs (2)
642
_arySVS[k - 1].info == FrameworkElement.
DataContextProperty
)
673
_arySVS[_arySVS.Length - 1].info == FrameworkElement.
DataContextProperty
&&
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (1)
103
owner.GetValue(FrameworkElement.
DataContextProperty
) ==
System\Windows\Controls\ContentPresenter.cs (1)
871
this.ClearValue(
DataContextProperty
);
System\Windows\Controls\DataGridCell.cs (1)
409
oldContent.SetValue(FrameworkElement.
DataContextProperty
, BindingExpressionBase.DisconnectedItem);
System\Windows\Controls\ItemContainerGenerator.cs (3)
2281
DependencyProperty dp = FrameworkElement.
DataContextProperty
;
2286
container.SetValue(FrameworkElement.
DataContextProperty
, item);
2341
DependencyProperty dp = FrameworkElement.
DataContextProperty
;
System\Windows\Data\BindingExpression.cs (11)
230
if (dp == FrameworkElement.
DataContextProperty
&& d == ContextElement)
466
BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.
DataContextProperty
, null, out hasModifiers);
713
if (TargetProperty == FrameworkElement.
DataContextProperty
||
718
cvs.PropertyForInheritanceContext == FrameworkElement.
DataContextProperty
)
767
source = contextElement.GetValue(FrameworkElement.
DataContextProperty
);
934
object item = contextElement.GetValue(FrameworkElement.
DataContextProperty
);
1228
newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.
DataContextProperty
);
2292
item = contextElement.GetValue(FrameworkElement.
DataContextProperty
);
2440
object newItem = contextElement.GetValue(FrameworkElement.
DataContextProperty
);
2669
if (dp == FrameworkElement.
DataContextProperty
)
2737
b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.
DataContextProperty
) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (1)
1738
DependencyProperty dataContextDP = FrameworkElement.
DataContextProperty
;
System\Windows\Data\BindingGroup.cs (2)
823
object dataContextItem = mentor.GetValue(FrameworkElement.
DataContextProperty
);
1027
mentor.GetValue(FrameworkElement.
DataContextProperty
) == CollectionView.NewItemPlaceholder)
System\Windows\FrameworkContentElement.cs (1)
1129
FrameworkElement.
DataContextProperty
.AddOwner(
System\Windows\FrameworkElement.cs (2)
2738
get { return GetValue(
DataContextProperty
); }
2739
set { SetValue(
DataContextProperty
, value); }
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
84
_currentFilterItem.SetBinding(RibbonMenuItem.
DataContextProperty
, currentFilterBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1654
new PropertyAndTransferMode () { Property = FrameworkElement.
DataContextProperty
, Mode = TransferMode.AlwaysTransfer },