8 instantiations of WeakDependencySource
PresentationFramework (8)
MS\Internal\Data\ClrBindingWorker.cs (2)
588newSources[n++] = new WeakDependencySource(d, dp); 599newSources[n++] = new WeakDependencySource(d, DependencyObject.DirectDependencyProperty);
System\Windows\Data\BindingExpression.cs (4)
1215newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1222(wr != null) ? new WeakDependencySource(wr, CollectionViewSource.ViewProperty) 1223: new WeakDependencySource(cvs, CollectionViewSource.ViewProperty); 1228newSources[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)
576WeakDependencySource[] newSources = new WeakDependencySource[size];
System\Windows\Data\BindingExpression.cs (4)
260internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 1194internal void ChangeWorkerSources(WeakDependencySource[] newWorkerSources, int n) 1211WeakDependencySource[] newSources = (size > 0) ? new WeakDependencySource[size] : null;
System\Windows\Data\BindingExpressionBase.cs (12)
985internal abstract void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources); 2017internal WeakDependencySource[] WeakSources 2402internal void ChangeSources(WeakDependencySource[] newSources) 2423internal static WeakDependencySource[] CombineSources(int index, 2426WeakDependencySource[] newSources, 2427WeakDependencySource[] commonSources = null) 2435var tempList = new List<WeakDependencySource>(); 2448WeakDependencySource[] sources = (i==index) ? newSources : 2453WeakDependencySource candidate = sources[j]; 2458WeakDependencySource prior = tempList[k]; 2859void ChangeSources(DependencyObject target, DependencyProperty dp, WeakDependencySource[] newSources) 2917WeakDependencySource[] _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)
271internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 277WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, AttentiveBindingExpressions, newSources); 542WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, AttentiveBindingExpressions, null);