29 references to DataContextProperty
PresentationFramework (27)
MS\Internal\Data\ClrBindingWorker.cs (1)
81else if (targetDP == FrameworkElement.DataContextProperty ||
MS\Internal\Data\ObjectRef.cs (1)
375o = 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)
103owner.GetValue(FrameworkElement.DataContextProperty) ==
System\Windows\Controls\ContentPresenter.cs (1)
871this.ClearValue(DataContextProperty);
System\Windows\Controls\DataGridCell.cs (1)
409oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem);
System\Windows\Controls\ItemContainerGenerator.cs (3)
2281DependencyProperty dp = FrameworkElement.DataContextProperty; 2286container.SetValue(FrameworkElement.DataContextProperty, item); 2341DependencyProperty dp = FrameworkElement.DataContextProperty;
System\Windows\Data\BindingExpression.cs (11)
230if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 466BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 713if (TargetProperty == FrameworkElement.DataContextProperty || 718cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 767source = contextElement.GetValue(FrameworkElement.DataContextProperty); 934object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1228newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 2292item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2440object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2669if (dp == FrameworkElement.DataContextProperty) 2737b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (1)
1738DependencyProperty dataContextDP = FrameworkElement.DataContextProperty;
System\Windows\Data\BindingGroup.cs (2)
823object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 1027mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder)
System\Windows\FrameworkContentElement.cs (1)
1129FrameworkElement.DataContextProperty.AddOwner(
System\Windows\FrameworkElement.cs (2)
2731get { return GetValue(DataContextProperty); } 2732set { 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)
1654new PropertyAndTransferMode () { Property = FrameworkElement.DataContextProperty, Mode = TransferMode.AlwaysTransfer },