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)
1214newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1221(wr != null) ? new WeakDependencySource(wr, CollectionViewSource.ViewProperty) 1222: new WeakDependencySource(cvs, CollectionViewSource.ViewProperty); 1227newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty);
System\Windows\Data\MultiBindingExpression.cs (2)
224WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 442commonSources = 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)
259internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 1193internal void ChangeWorkerSources(WeakDependencySource[] newWorkerSources, int n) 1210WeakDependencySource[] newSources = (size > 0) ? new WeakDependencySource[size] : null;
System\Windows\Data\BindingExpressionBase.cs (12)
984internal abstract void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources); 2016internal WeakDependencySource[] WeakSources 2401internal void ChangeSources(WeakDependencySource[] newSources) 2422internal static WeakDependencySource[] CombineSources(int index, 2425WeakDependencySource[] newSources, 2426WeakDependencySource[] commonSources = null) 2434var tempList = new List<WeakDependencySource>(); 2447WeakDependencySource[] sources = (i==index) ? newSources : 2452WeakDependencySource candidate = sources[j]; 2457WeakDependencySource prior = tempList[k]; 2858private void ChangeSources(DependencyObject target, DependencyProperty dp, WeakDependencySource[] newSources) 2916private WeakDependencySource[] _sources;
System\Windows\Data\MultiBindingExpression.cs (7)
224WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 225WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, MutableBindingExpressions.Count, null, commonSources); 433internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 439WeakDependencySource[] commonSources = null; 442commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 445WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, MutableBindingExpressions.Count, newSources, commonSources);
System\Windows\Data\PriorityBindingExpression.cs (3)
270internal override void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources) 276WeakDependencySource[] combinedSources = CombineSources(index, MutableBindingExpressions, AttentiveBindingExpressions, newSources); 541WeakDependencySource[] newSources = CombineSources(-1, MutableBindingExpressions, AttentiveBindingExpressions, null);