8 instantiations of WeakDependencySource
PresentationFramework (8)
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (2)
609newSources[n++] = new WeakDependencySource(d, dp); 620newSources[n++] = new WeakDependencySource(d, DependencyObject.DirectDependencyProperty);
src\Framework\System\Windows\Data\BindingExpression.cs (4)
1221newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1228(wr != null) ? new WeakDependencySource(wr, CollectionViewSource.ViewProperty) 1229: new WeakDependencySource(cvs, CollectionViewSource.ViewProperty); 1234newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty);
src\Framework\System\Windows\Data\MultiBindingExpression.cs (2)
237WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 454commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) };
31 references to WeakDependencySource
PresentationFramework (31)
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (2)
597WeakDependencySource[] newSources = new WeakDependencySource[size];
src\Framework\System\Windows\Data\BindingExpression.cs (4)
277internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 1200internal void ChangeWorkerSources(WeakDependencySource[] newWorkerSources, int n) 1217WeakDependencySource[] newSources = (size > 0) ? new WeakDependencySource[size] : null;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (15)
997internal abstract void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources); 2017internal WeakDependencySource[] WeakSources 2422internal void ChangeSources(WeakDependencySource[] newSources) 2443internal static WeakDependencySource[] CombineSources(int index, 2446WeakDependencySource[] newSources, 2447WeakDependencySource[] commonSources = null) 2455Collection<WeakDependencySource> tempList = new Collection<WeakDependencySource>(); 2468WeakDependencySource[] sources = (i==index) ? newSources : 2474WeakDependencySource candidate = sources[j]; 2479WeakDependencySource prior = tempList[k]; 2493WeakDependencySource[] result; 2496result = new WeakDependencySource[tempList.Count]; 2888void ChangeSources(DependencyObject target, DependencyProperty dp, WeakDependencySource[] newSources) 2946WeakDependencySource[] _sources;
src\Framework\System\Windows\Data\MultiBindingExpression.cs (7)
237WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 238WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, MutableBindingExpressions.Count, null, commonSources); 445internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 451WeakDependencySource[] commonSources = null; 454commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 457WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, MutableBindingExpressions.Count, newSources, commonSources);
src\Framework\System\Windows\Data\PriorityBindingExpression.cs (3)
288internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 294WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, AttentiveBindingExpressions, newSources); 562WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, AttentiveBindingExpressions, null);