3 types derived from DeferredResourceReference
PresentationFramework (3)
System\Windows\SystemResources.cs (3)
1893internal class DeferredAppResourceReference : DeferredResourceReference 1926internal class DeferredThemeResourceReference : DeferredResourceReference 2008internal class DeferredResourceReferenceHolder : DeferredResourceReference
2 instantiations of DeferredResourceReference
PresentationFramework (2)
System\Windows\ResourceDictionary.cs (2)
1746deferredResourceReference = new DeferredResourceReference(this, resourceKey); 1771deferredResourceReference = _ownerApps is not null ? new DeferredAppResourceReference(this, resourceKey) : new DeferredResourceReference(this, resourceKey);
44 references to DeferredResourceReference
PresentationFramework (44)
System\Windows\Markup\BamlRecordReader.cs (7)
1905DeferredResourceReference prefetchedValue = (DeferredResourceReference)staticResourceValues[bamlStaticResourceIdRecord.StaticResourceId]; 1980DeferredResourceReference prefetchedValue = 1981(DeferredResourceReference)staticResourceValues[staticResourceId]; 5671internal StaticResourceHolder(object resourceKey, DeferredResourceReference prefetchedValue) : base(resourceKey) 5680internal override DeferredResourceReference PrefetchedValue 5689private DeferredResourceReference _prefetchedValue;
System\Windows\ResourceDictionary.cs (9)
1314Debug.Assert(obj is DeferredResourceReference); 1315staticResources[i] = new StaticResourceHolder(keyValue, obj as DeferredResourceReference); 1735DeferredResourceReference deferredResourceReference; 1803DeferredResourceReference deferredResourceReference = o as DeferredResourceReference; 1823foreach (DeferredResourceReference deferredResourceReference in _deferredResourceReferencesList) 1830DeferredResourceReference deferredResourceReference = _deferredResourceReferencesList.Get(resourceKey); 1837void Inflate(DeferredResourceReference deferredResourceReference) 2544foreach (DeferredResourceReference drr in _weakDeferredResourceReferences)
System\Windows\ResourceReferenceExpression.cs (5)
163DeferredResourceReference deferredResourceReference = resource as DeferredResourceReference; 263DeferredResourceReference deferredResourceReference = _cachedResourceValue as DeferredResourceReference; 456internal void OnDeferredResourceInflated(DeferredResourceReference deferredResourceReference)
System\Windows\StaticResourceExtension.cs (5)
87internal virtual DeferredResourceReference PrefetchedValue 139DeferredResourceReference deferredReference = value as DeferredResourceReference; 173DeferredResourceReference prefetchedValue = PrefetchedValue; 345if (!(val is DeferredResourceReference))
System\Windows\SystemResources.cs (14)
2057internal class DeferredResourceReferenceList : IEnumerable<DeferredResourceReference> 2060private readonly Dictionary<object, WeakReference<DeferredResourceReference>> _entries = new(); 2063public void AddOrSet(DeferredResourceReference deferredResourceReference) 2067_entries[deferredResourceReference.Key] = new WeakReference<DeferredResourceReference>(deferredResourceReference); 2071public void Remove(DeferredResourceReference deferredResourceReference) 2079internal DeferredResourceReference Get(object resourceKey) 2090if (weakReference.TryGetTarget(out var deferredResourceReference)) 2109foreach (WeakReference<DeferredResourceReference> weakReference in _entries.Values) 2111if (weakReference.TryGetTarget(out var deferredResourceReference)) 2138private void Purge(List<DeferredResourceReference> aliveItems) 2145foreach (KeyValuePair<object, WeakReference<DeferredResourceReference>> entry in _entries) 2147if (entry.Value.TryGetTarget(out var item) is false) 2164public IEnumerator<DeferredResourceReference> GetEnumerator() 2166var aliveItems = new List<DeferredResourceReference>(_entries.Count);
System\Windows\TemplateContent.cs (4)
714var deferredResourceReference = obj as DeferredResourceReference; 783DeferredResourceReference value = (DeferredResourceReference)resource.TryProvideValueInternal(TemplateLoadData.ServiceProviderWrapper, true/*allowDeferredReference*/, true/*mustReturnDeferredResourceReference*/);