8 instantiations of WeakDependencySource
PresentationFramework (8)
MS\Internal\Data\ClrBindingWorker.cs (2)
601newSources[n++] = new WeakDependencySource(d, dp); 612newSources[n++] = new WeakDependencySource(d, DependencyObject.DirectDependencyProperty);
System\Windows\Data\BindingExpression.cs (4)
1219newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1226(wr != null) ? new WeakDependencySource(wr, CollectionViewSource.ViewProperty) 1227: new WeakDependencySource(cvs, CollectionViewSource.ViewProperty); 1232newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty);
System\Windows\Data\MultiBindingExpression.cs (2)
225WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 443commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) };
28 references to WeakDependencySource
PresentationFramework (28)
MS\Internal\Data\ClrBindingWorker.cs (2)
589WeakDependencySource[] newSources = new WeakDependencySource[size];
System\Windows\Data\BindingExpression.cs (4)
263internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 1198internal void ChangeWorkerSources(WeakDependencySource[] newWorkerSources, int n) 1215WeakDependencySource[] newSources = (size > 0) ? new WeakDependencySource[size] : null;
System\Windows\Data\BindingExpressionBase.cs (12)
985internal abstract void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources); 2018internal WeakDependencySource[] WeakSources 2412internal void ChangeSources(WeakDependencySource[] newSources) 2433internal static WeakDependencySource[] CombineSources(int index, 2436WeakDependencySource[] newSources, 2437WeakDependencySource[] commonSources = null) 2445var tempList = new List<WeakDependencySource>(); 2458WeakDependencySource[] sources = (i==index) ? newSources : 2464WeakDependencySource candidate = sources[j]; 2469WeakDependencySource prior = tempList[k]; 2870void ChangeSources(DependencyObject target, DependencyProperty dp, WeakDependencySource[] newSources) 2928WeakDependencySource[] _sources;
System\Windows\Data\MultiBindingExpression.cs (7)
225WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 226WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, MutableBindingExpressions.Count, null, commonSources); 434internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 440WeakDependencySource[] commonSources = null; 443commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 446WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, MutableBindingExpressions.Count, newSources, commonSources);
System\Windows\Data\PriorityBindingExpression.cs (3)
278internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 284WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, AttentiveBindingExpressions, newSources); 552WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, AttentiveBindingExpressions, null);