1 instantiation of BindingExpression
PresentationFramework (1)
System\Windows\Data\BindingExpression.cs (1)
410BindingExpression bindExpr = new BindingExpression(binding, parent);
139 references to BindingExpression
PresentationFramework (139)
MS\Internal\Data\BindingExpressionUncommonField.cs (3)
19internal class BindingExpressionUncommonField : UncommonField<BindingExpression> 21internal new void SetValue(DependencyObject instance, BindingExpression bindingExpr) 29BindingExpression bindingExpr = GetValue(instance);
MS\Internal\Data\BindingWorker.cs (3)
37protected BindingWorker(BindingExpression b) 50internal BindingExpression ParentBindingExpression { get { return _bindingExpression; } } 112BindingExpression _bindingExpression;
MS\Internal\Data\ClrBindingWorker.cs (6)
37internal ClrBindingWorker(BindingExpression b, DataBindEngine engine) : base(b) 72if (targetDP == System.Windows.Data.BindingExpression.NoTargetProperty || 171if (item == null || item == BindingExpression.NullDataItem) 248if (item == null || item == BindingExpression.NullDataItem) 349BindingExpression parent = ParentBindingExpression; 537if (item == BindingExpression.NullDataItem)
MS\Internal\Data\ObjectRef.cs (2)
466if (BindingExpression.HasLocalDataContext(d)) 500if (!BindingExpression.HasLocalDataContext(parent))
MS\Internal\Data\PropertyPathWorker.cs (51)
57_arySVS[i].item = BindingExpression.CreateReference(BindingExpression.NullDataItem); 72get { return BindingExpression.GetReference(_treeContext) as DependencyObject; } 73set { _treeContext = BindingExpression.CreateReference(value); } 78_treeContext = BindingExpression.CreateReference(wr); 100if (item == BindingExpression.NullDataItem) 170return BindingExpression.GetReference(_arySVS[level].item); 219_rootItem = BindingExpression.CreateReference(rootItem); 225_rootItem = BindingExpression.NullDataItem; 260value = BindingExpression.IgnoreDefaultValue; 417object oldValue = BindingExpression.GetReference(_arySVS[k].item); 442object o = BindingExpression.GetReference(_arySVS[k].item); 443if (o == BindingExpression.StaticSource) 492if ((_arySVS[k].info == dp) && (BindingExpression.GetReference(_arySVS[k].item) == d)) 507UpdateSourceValueState(_arySVS.Length, null, BindingExpression.NullDataItem, isASubPropertyChange); 515if ((_arySVS[k].info == dp) && (BindingExpression.GetReference(_arySVS[k].item) == d)) 518UpdateSourceValueState(k, null, BindingExpression.NullDataItem, isASubPropertyChange); 587UpdateSourceValueState(k, collectionView, BindingExpression.NullDataItem, false); 600if (_rootItem != BindingExpression.NullDataItem && target == null) 633rawValue = (newValue == BindingExpression.NullDataItem) ? RawValue(k - 1) : newValue; 634newValue = BindingExpression.NullDataItem; 648ReplaceItem(k, BindingExpression.NullDataItem, rawValue); 692object oldO = BindingExpression.GetReference(_arySVS[k].item); 704if (oldO == BindingExpression.StaticSource) 747parent == BindingExpression.NullDataItem || 750_arySVS[k].item = BindingExpression.ReplaceReference(_arySVS[k].item, newO); 753parent == BindingExpression.NullDataItem || 773if (newO != BindingExpression.NullDataItem) 800return BindingExpression.GetReference((k == 0) ? _rootItem : _arySVS[k - 1].item); 832svs.item = BindingExpression.ReplaceReference(svs.item, BindingExpression.NullDataItem); 843svs.item = BindingExpression.ReplaceReference(svs.item, BindingExpression.NullDataItem); 851newO = BindingExpression.GetReference(svs.item); 876if (newO == BindingExpression.StaticSource) 934BindingExpression bindingExpression = (_host != null) ? _host.ParentBindingExpression : null; 997item = BindingExpression.StaticSource; 1000if (!ItemsControl.EqualsEx(item, BindingExpression.GetReference(_arySVS[level].item)) 1034object oldItem = BindingExpression.GetReference(_arySVS[k].item); 1044if (newType == oldType && oldItem != BindingExpression.NullDataItem && 1048svs.item = BindingExpression.ReplaceReference(svs.item, item); 1068svs.item = BindingExpression.ReplaceReference(svs.item, item); 1094item = BindingExpression.StaticSource; 1096svs.item = BindingExpression.ReplaceReference(svs.item, item); 1278if (item != BindingExpression.GetReference(svs.item)) 1279sb.AppendLine($" Item is wrong: expected '{item}' got '{BindingExpression.GetReference(svs.item)}'"); 1306item = BindingExpression.StaticSource; 1311svs.item = BindingExpression.ReplaceReference(svs.item, item); 1519return BindingExpression.GetReference(_rootItem); 1523object item = BindingExpression.GetReference(_arySVS[k].item); 1529if (item != BindingExpression.NullDataItem && info != null && !(item == null && info != DependencyProperty.UnsetValue))
MS\Internal\TraceData.cs (3)
140else if (o is BindingExpression) 142BindingExpression bindingExpr = o as BindingExpression;
System\Windows\Controls\DataErrorValidationRule.cs (2)
46BindingExpression bindingExpr; 66else if ((bindingExpr = value as BindingExpression) != null)
System\Windows\Controls\DataGridHelper.cs (3)
518internal static BindingExpression GetBindingExpression(FrameworkElement element, DependencyProperty dp) 583BindingExpression be; 587if ((be = beb as BindingExpression) != null)
System\Windows\Controls\Primitives\Selector.cs (6)
580BindingExpression bindingExpr = PrepareItemValueBinding(Items.GetRepresentativeItem()); 733private BindingExpression PrepareItemValueBinding(object item) 741BindingExpression bindingExpr = ItemValueBindingExpression.GetValue(this); 773bindingExpr = (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(this, binding); 2176BindingExpression bindingExpr = PrepareItemValueBinding(item);
System\Windows\Controls\TextSearch.cs (6)
409BindingExpression primaryTextBinding = null; 575private static string GetPrimaryText(object item, BindingExpression primaryTextBinding, DependencyObject primaryTextBindingHome) 644BindingExpression primaryTextBinding = CreateBindingExpression(itemsControl, item, GetPrimaryTextPath(itemsControl)); 654private static BindingExpression CreateBindingExpression(ItemsControl itemsControl, object item, string primaryTextPath) 671return (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(itemsControl, binding);
System\Windows\Controls\TreeView.cs (5)
280BindingExpression expression = PrepareSelectedValuePathBindingExpression(selectedItem); 296private BindingExpression PrepareSelectedValuePathBindingExpression(object item) 306BindingExpression bindingExpr = SelectedValuePathBindingExpression.GetValue(this); 335bindingExpr = (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(this, binding);
System\Windows\Data\Binding.cs (2)
682return BindingExpression.CreateBindingExpression(target, dp, this, owner); 850static readonly ObjectRef StaticSourceRef = new ExplicitObjectRef(BindingExpression.StaticSource);
System\Windows\Data\BindingExpression.cs (6)
399internal static BindingExpression CreateBindingExpression(DependencyObject d, 410BindingExpression bindExpr = new BindingExpression(binding, parent); 2703internal ChangingValueHelper(BindingExpression b) 2715BindingExpression _bindingExpression; 2729BindingExpression b = null; 2737b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (6)
1242internal ProposedValue(BindingExpression bindingExpression, object rawValue, object convertedValue) 1249internal BindingExpression BindingExpression { get { return _bindingExpression; } } 1253BindingExpression _bindingExpression; 1860if (!(this is BindingExpression)) 2787!(item == BindingExpression.NullDataItem) && 2815!(item == BindingExpression.NullDataItem) &&
System\Windows\Data\BindingGroup.cs (19)
546BindingExpression bindingExpression = (BindingExpression)entry.BindingExpressionBase; 679internal void UpdateTable(BindingExpression bindingExpression) 1088errors = BindingExpression.GetDataErrors(indei, String.Empty); 1180BindingExpression bindExpr = _proposedValueBindingExpressions[i]; 1430_proposedValueBindingExpressions = new BindingExpression[count]; 1454BindingExpression bindExpr = (BindingExpression)BindingExpression.CreateUntargetedBindingExpression(mentor, binding); 1470BindingExpression bindExpr = _proposedValueBindingExpressions[i]; 1561BindingExpression[] _proposedValueBindingExpressions; 1637public bool Update(BindingExpression bindingExpression) 1744public void Update(BindingExpression bindingExpression) 1793BindingExpression bindingExpression = _bindingExpressionBase as BindingExpression; 1817BindingExpression bindExpr = proposedValue.BindingExpression; 1841public void Remove(BindingExpression bindExpr) 1880public ProposedValueEntry this[BindingExpression bindExpr] 1954BindingExpression bindExpr)
System\Windows\Data\BindingOperations.cs (2)
179public static BindingExpression GetBindingExpression(DependencyObject target, DependencyProperty dp) 187return expr as BindingExpression;
System\Windows\Data\MultiBindingExpression.cs (4)
635BindingExpression be = bindExpr as BindingExpression; 1389BindingExpression.OnTargetUpdated(target, TargetProperty); 1402BindingExpression.OnSourceUpdated(target, TargetProperty);
System\Windows\FrameworkContentElement.cs (3)
1176public BindingExpression GetBindingExpression(DependencyProperty dp) 1197public BindingExpression SetBinding(DependencyProperty dp, string path) 1199return (BindingExpression)SetBinding(dp, new Binding(path));
System\Windows\FrameworkElement.cs (3)
2757public BindingExpression GetBindingExpression(DependencyProperty dp) 2778public BindingExpression SetBinding(DependencyProperty dp, string path) 2780return (BindingExpression)SetBinding(dp, new Binding(path));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
118case 22: t = () => typeof(BindingExpression); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
1882typeof(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)
2878bindingExpr = BindingExpression.CreateUntargetedBindingExpression(container, binding);