1 instantiation of BindingExpression
PresentationFramework (1)
System\Windows\Data\BindingExpression.cs (1)
401BindingExpression bindExpr = new BindingExpression(binding, parent);
139 references to BindingExpression
PresentationFramework (139)
MS\Internal\Data\BindingExpressionUncommonField.cs (3)
18internal class BindingExpressionUncommonField : UncommonField<BindingExpression> 20internal new void SetValue(DependencyObject instance, BindingExpression bindingExpr) 28BindingExpression bindingExpr = GetValue(instance);
MS\Internal\Data\BindingWorker.cs (3)
33protected BindingWorker(BindingExpression b) 46internal BindingExpression ParentBindingExpression { get { return _bindingExpression; } } 108BindingExpression _bindingExpression;
MS\Internal\Data\ClrBindingWorker.cs (6)
28internal ClrBindingWorker(BindingExpression b, DataBindEngine engine) : base(b) 63if (targetDP == System.Windows.Data.BindingExpression.NoTargetProperty || 162if (item == null || item == BindingExpression.NullDataItem) 239if (item == null || item == BindingExpression.NullDataItem) 340BindingExpression parent = ParentBindingExpression; 528if (item == BindingExpression.NullDataItem)
MS\Internal\Data\ObjectRef.cs (2)
460if (BindingExpression.HasLocalDataContext(d)) 494if (!BindingExpression.HasLocalDataContext(parent))
MS\Internal\Data\PropertyPathWorker.cs (51)
51_arySVS[i].item = BindingExpression.CreateReference(BindingExpression.NullDataItem); 66get { return BindingExpression.GetReference(_treeContext) as DependencyObject; } 67set { _treeContext = BindingExpression.CreateReference(value); } 72_treeContext = BindingExpression.CreateReference(wr); 94if (item == BindingExpression.NullDataItem) 164return BindingExpression.GetReference(_arySVS[level].item); 213_rootItem = BindingExpression.CreateReference(rootItem); 219_rootItem = BindingExpression.NullDataItem; 254value = BindingExpression.IgnoreDefaultValue; 411object oldValue = BindingExpression.GetReference(_arySVS[k].item); 436object o = BindingExpression.GetReference(_arySVS[k].item); 437if (o == BindingExpression.StaticSource) 486if ((_arySVS[k].info == dp) && (BindingExpression.GetReference(_arySVS[k].item) == d)) 501UpdateSourceValueState(_arySVS.Length, null, BindingExpression.NullDataItem, isASubPropertyChange); 509if ((_arySVS[k].info == dp) && (BindingExpression.GetReference(_arySVS[k].item) == d)) 512UpdateSourceValueState(k, null, BindingExpression.NullDataItem, isASubPropertyChange); 581UpdateSourceValueState(k, collectionView, BindingExpression.NullDataItem, false); 594if (_rootItem != BindingExpression.NullDataItem && target == null) 627rawValue = (newValue == BindingExpression.NullDataItem) ? RawValue(k - 1) : newValue; 628newValue = BindingExpression.NullDataItem; 642ReplaceItem(k, BindingExpression.NullDataItem, rawValue); 686object oldO = BindingExpression.GetReference(_arySVS[k].item); 698if (oldO == BindingExpression.StaticSource) 741parent == BindingExpression.NullDataItem || 744_arySVS[k].item = BindingExpression.ReplaceReference(_arySVS[k].item, newO); 747parent == BindingExpression.NullDataItem || 767if (newO != BindingExpression.NullDataItem) 794return BindingExpression.GetReference((k == 0) ? _rootItem : _arySVS[k - 1].item); 826svs.item = BindingExpression.ReplaceReference(svs.item, BindingExpression.NullDataItem); 837svs.item = BindingExpression.ReplaceReference(svs.item, BindingExpression.NullDataItem); 845newO = BindingExpression.GetReference(svs.item); 870if (newO == BindingExpression.StaticSource) 928BindingExpression bindingExpression = (_host != null) ? _host.ParentBindingExpression : null; 991item = BindingExpression.StaticSource; 994if (!ItemsControl.EqualsEx(item, BindingExpression.GetReference(_arySVS[level].item)) 1028object oldItem = BindingExpression.GetReference(_arySVS[k].item); 1038if (newType == oldType && oldItem != BindingExpression.NullDataItem && 1042svs.item = BindingExpression.ReplaceReference(svs.item, item); 1062svs.item = BindingExpression.ReplaceReference(svs.item, item); 1088item = BindingExpression.StaticSource; 1090svs.item = BindingExpression.ReplaceReference(svs.item, item); 1272if (item != BindingExpression.GetReference(svs.item)) 1273sb.AppendLine($" Item is wrong: expected '{item}' got '{BindingExpression.GetReference(svs.item)}'"); 1300item = BindingExpression.StaticSource; 1305svs.item = BindingExpression.ReplaceReference(svs.item, item); 1513return BindingExpression.GetReference(_rootItem); 1517object item = BindingExpression.GetReference(_arySVS[k].item); 1523if (item != BindingExpression.NullDataItem && info != null && !(item == null && info != DependencyProperty.UnsetValue))
MS\Internal\TraceData.cs (3)
135else if (o is BindingExpression) 137BindingExpression bindingExpr = o as BindingExpression;
System\Windows\Controls\DataErrorValidationRule.cs (2)
42BindingExpression bindingExpr; 62else if ((bindingExpr = value as BindingExpression) != null)
System\Windows\Controls\DataGridHelper.cs (3)
512internal static BindingExpression GetBindingExpression(FrameworkElement element, DependencyProperty dp) 577BindingExpression be; 581if ((be = beb as BindingExpression) != null)
System\Windows\Controls\Primitives\Selector.cs (6)
571BindingExpression bindingExpr = PrepareItemValueBinding(Items.GetRepresentativeItem()); 724private BindingExpression PrepareItemValueBinding(object item) 732BindingExpression bindingExpr = ItemValueBindingExpression.GetValue(this); 764bindingExpr = (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(this, binding); 2167BindingExpression bindingExpr = PrepareItemValueBinding(item);
System\Windows\Controls\TextSearch.cs (6)
398BindingExpression primaryTextBinding = null; 564private static string GetPrimaryText(object item, BindingExpression primaryTextBinding, DependencyObject primaryTextBindingHome) 633BindingExpression primaryTextBinding = CreateBindingExpression(itemsControl, item, GetPrimaryTextPath(itemsControl)); 643private static BindingExpression CreateBindingExpression(ItemsControl itemsControl, object item, string primaryTextPath) 660return (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(itemsControl, binding);
System\Windows\Controls\TreeView.cs (5)
275BindingExpression expression = PrepareSelectedValuePathBindingExpression(selectedItem); 291private BindingExpression PrepareSelectedValuePathBindingExpression(object item) 301BindingExpression bindingExpr = SelectedValuePathBindingExpression.GetValue(this); 330bindingExpr = (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(this, binding);
System\Windows\Data\Binding.cs (2)
674return BindingExpression.CreateBindingExpression(target, dp, this, owner); 842static readonly ObjectRef StaticSourceRef = new ExplicitObjectRef(BindingExpression.StaticSource);
System\Windows\Data\BindingExpression.cs (6)
390internal static BindingExpression CreateBindingExpression(DependencyObject d, 401BindingExpression bindExpr = new BindingExpression(binding, parent); 2694internal ChangingValueHelper(BindingExpression b) 2706BindingExpression _bindingExpression; 2720BindingExpression b = null; 2728b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (6)
1234internal ProposedValue(BindingExpression bindingExpression, object rawValue, object convertedValue) 1241internal BindingExpression BindingExpression { get { return _bindingExpression; } } 1245BindingExpression _bindingExpression; 1852if (!(this is BindingExpression)) 2779!(item == BindingExpression.NullDataItem) && 2807!(item == BindingExpression.NullDataItem) &&
System\Windows\Data\BindingGroup.cs (19)
541BindingExpression bindingExpression = (BindingExpression)entry.BindingExpressionBase; 674internal void UpdateTable(BindingExpression bindingExpression) 1083errors = BindingExpression.GetDataErrors(indei, String.Empty); 1175BindingExpression bindExpr = _proposedValueBindingExpressions[i]; 1425_proposedValueBindingExpressions = new BindingExpression[count]; 1449BindingExpression bindExpr = (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(mentor, binding); 1465BindingExpression bindExpr = _proposedValueBindingExpressions[i]; 1556BindingExpression[] _proposedValueBindingExpressions; 1632public bool Update(BindingExpression bindingExpression) 1739public void Update(BindingExpression bindingExpression) 1788BindingExpression bindingExpression = _bindingExpressionBase as BindingExpression; 1812BindingExpression bindExpr = proposedValue.BindingExpression; 1836public void Remove(BindingExpression bindExpr) 1875public ProposedValueEntry this[BindingExpression bindExpr] 1949BindingExpression bindExpr)
System\Windows\Data\BindingOperations.cs (2)
170public static BindingExpression GetBindingExpression(DependencyObject target, DependencyProperty dp) 178return expr as BindingExpression;
System\Windows\Data\MultiBindingExpression.cs (4)
624BindingExpression be = bindExpr as BindingExpression; 1378BindingExpression.OnTargetUpdated(target, TargetProperty); 1391BindingExpression.OnSourceUpdated(target, TargetProperty);
System\Windows\FrameworkContentElement.cs (3)
1164public BindingExpression GetBindingExpression(DependencyProperty dp) 1185public BindingExpression SetBinding(DependencyProperty dp, string path) 1187return (BindingExpression)SetBinding(dp, new Binding(path));
System\Windows\FrameworkElement.cs (3)
2746public BindingExpression GetBindingExpression(DependencyProperty dp) 2767public BindingExpression SetBinding(DependencyProperty dp, string path) 2769return (BindingExpression)SetBinding(dp, new Binding(path));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
116case 22: t = () => typeof(BindingExpression); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1880typeof(System.Windows.Data.BindingExpression),
System\Windows\Markup\KnownTypes.cs (1)
5576case KnownElements.BindingExpression: t = typeof(System.Windows.Data.BindingExpression); break;
System\Windows\StyleHelper.cs (1)
2872bindingExpr = BindingExpression.CreateUntargetedBindingExpression(container, binding);