29 references to DataContextProperty
PresentationFramework (27)
MS\Internal\Data\ClrBindingWorker.cs (1)
71else if (targetDP == FrameworkElement.DataContextProperty ||
MS\Internal\Data\ObjectRef.cs (1)
368o = el.GetValue(FrameworkElement.DataContextProperty);
MS\Internal\Data\PropertyPathWorker.cs (2)
627_arySVS[k - 1].info == FrameworkElement.DataContextProperty) 658_arySVS[_arySVS.Length - 1].info == FrameworkElement.DataContextProperty &&
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (1)
88owner.GetValue(FrameworkElement.DataContextProperty) ==
System\Windows\Controls\ContentPresenter.cs (1)
875this.ClearValue(DataContextProperty);
System\Windows\Controls\DataGridCell.cs (1)
398oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem);
System\Windows\Controls\ItemContainerGenerator.cs (3)
2269DependencyProperty dp = FrameworkElement.DataContextProperty; 2274container.SetValue(FrameworkElement.DataContextProperty, item); 2329DependencyProperty dp = FrameworkElement.DataContextProperty;
System\Windows\Data\BindingExpression.cs (11)
217if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 453BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 700if (TargetProperty == FrameworkElement.DataContextProperty || 705cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 754source = contextElement.GetValue(FrameworkElement.DataContextProperty); 921object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1214newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 2243item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2391object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2624if (dp == FrameworkElement.DataContextProperty) 2689b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (1)
1728DependencyProperty dataContextDP = FrameworkElement.DataContextProperty;
System\Windows\Data\BindingGroup.cs (2)
808object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 1009mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder)
System\Windows\FrameworkContentElement.cs (1)
1108FrameworkElement.DataContextProperty.AddOwner(
System\Windows\FrameworkElement.cs (2)
2718get { return GetValue(DataContextProperty); } 2719set { SetValue(DataContextProperty, value); }
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
81_currentFilterItem.SetBinding(RibbonMenuItem.DataContextProperty, currentFilterBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1628new PropertyAndTransferMode () { Property = FrameworkElement.DataContextProperty, Mode = TransferMode.AlwaysTransfer },