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)
978internal abstract void ChangeSourcesForChild(BindingExpressionBase bindingExpression, WeakDependencySource[] newSources); 2010internal WeakDependencySource[] WeakSources 2395internal void ChangeSources(WeakDependencySource[] newSources) 2416internal static WeakDependencySource[] CombineSources(int index, 2419WeakDependencySource[] newSources, 2420WeakDependencySource[] commonSources = null) 2428var tempList = new List<WeakDependencySource>(); 2441WeakDependencySource[] sources = (i==index) ? newSources : 2446WeakDependencySource candidate = sources[j]; 2451WeakDependencySource prior = tempList[k]; 2852private void ChangeSources(DependencyObject target, DependencyProperty dp, WeakDependencySource[] newSources) 2910private 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);