27 references to DataContextProperty
PresentationFramework (26)
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (1)
83else if (targetDP == FrameworkElement.DataContextProperty ||
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
385o = el.GetValue(FrameworkElement.DataContextProperty);
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (2)
642_arySVS[k-1].info == FrameworkElement.DataContextProperty) 673_arySVS[_arySVS.Length-1].info == FrameworkElement.DataContextProperty &&
src\Framework\System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (1)
99owner.GetValue(FrameworkElement.DataContextProperty) ==
src\Framework\System\Windows\Controls\ContentPresenter.cs (1)
873this.ClearValue(DataContextProperty);
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
404oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem);
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (2)
2294container.SetValue(FrameworkElement.DataContextProperty, item); 2349DependencyProperty dp = FrameworkElement.DataContextProperty;
src\Framework\System\Windows\Data\BindingExpression.cs (11)
235if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 471BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 712if (TargetProperty == FrameworkElement.DataContextProperty || 717cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 765source = contextElement.GetValue(FrameworkElement.DataContextProperty); 931object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1221newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 2272item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2420object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2644if (dp == FrameworkElement.DataContextProperty) 2712b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1731DependencyProperty dataContextDP = FrameworkElement.DataContextProperty;
src\Framework\System\Windows\Data\BindingGroup.cs (2)
825object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 1029mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder)
src\Framework\System\Windows\FrameworkContentElement.cs (1)
1138FrameworkElement.DataContextProperty.AddOwner(
src\Framework\System\Windows\FrameworkElement.cs (2)
2736get { return GetValue(DataContextProperty); } 2737set { SetValue(DataContextProperty, value); }
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (1)
294this.presenter.SetBinding(ContentPresenter.DataContextProperty, binding);