3 types derived from DeferredResourceReference
PresentationFramework (3)
System\Windows\SystemResources.cs (3)
1886internal class DeferredAppResourceReference : DeferredResourceReference 1919internal class DeferredThemeResourceReference : DeferredResourceReference 2001internal class DeferredResourceReferenceHolder : DeferredResourceReference
2 instantiations of DeferredResourceReference
PresentationFramework (2)
System\Windows\ResourceDictionary.cs (2)
1736deferredResourceReference = new DeferredResourceReference(this, resourceKey); 1761deferredResourceReference = _ownerApps is not null ? new DeferredAppResourceReference(this, resourceKey) : new DeferredResourceReference(this, resourceKey);
44 references to DeferredResourceReference
PresentationFramework (44)
System\Windows\Markup\BamlRecordReader.cs (7)
1896DeferredResourceReference prefetchedValue = (DeferredResourceReference)staticResourceValues[bamlStaticResourceIdRecord.StaticResourceId]; 1971DeferredResourceReference prefetchedValue = 1972(DeferredResourceReference)staticResourceValues[staticResourceId]; 5662internal StaticResourceHolder(object resourceKey, DeferredResourceReference prefetchedValue) : base(resourceKey) 5671internal override DeferredResourceReference PrefetchedValue 5680private DeferredResourceReference _prefetchedValue;
System\Windows\ResourceDictionary.cs (9)
1304Debug.Assert(obj is DeferredResourceReference); 1305staticResources[i] = new StaticResourceHolder(keyValue, obj as DeferredResourceReference); 1725DeferredResourceReference deferredResourceReference; 1793DeferredResourceReference deferredResourceReference = o as DeferredResourceReference; 1813foreach (DeferredResourceReference deferredResourceReference in _deferredResourceReferencesList) 1820DeferredResourceReference deferredResourceReference = _deferredResourceReferencesList.Get(resourceKey); 1827void Inflate(DeferredResourceReference deferredResourceReference) 2534foreach (DeferredResourceReference drr in _weakDeferredResourceReferences)
System\Windows\ResourceReferenceExpression.cs (5)
161DeferredResourceReference deferredResourceReference = resource as DeferredResourceReference; 261DeferredResourceReference deferredResourceReference = _cachedResourceValue as DeferredResourceReference; 454internal void OnDeferredResourceInflated(DeferredResourceReference deferredResourceReference)
System\Windows\StaticResourceExtension.cs (5)
79internal virtual DeferredResourceReference PrefetchedValue 131DeferredResourceReference deferredReference = value as DeferredResourceReference; 165DeferredResourceReference prefetchedValue = PrefetchedValue; 337if (!(val is DeferredResourceReference))
System\Windows\SystemResources.cs (14)
2050internal class DeferredResourceReferenceList : IEnumerable<DeferredResourceReference> 2053private readonly Dictionary<object, WeakReference<DeferredResourceReference>> _entries = new(); 2056public void AddOrSet(DeferredResourceReference deferredResourceReference) 2060_entries[deferredResourceReference.Key] = new WeakReference<DeferredResourceReference>(deferredResourceReference); 2064public void Remove(DeferredResourceReference deferredResourceReference) 2072internal DeferredResourceReference Get(object resourceKey) 2083if (weakReference.TryGetTarget(out var deferredResourceReference)) 2102foreach (WeakReference<DeferredResourceReference> weakReference in _entries.Values) 2104if (weakReference.TryGetTarget(out var deferredResourceReference)) 2131private void Purge(List<DeferredResourceReference> aliveItems) 2138foreach (KeyValuePair<object, WeakReference<DeferredResourceReference>> entry in _entries) 2140if (entry.Value.TryGetTarget(out var item) is false) 2157public IEnumerator<DeferredResourceReference> GetEnumerator() 2159var aliveItems = new List<DeferredResourceReference>(_entries.Count);
System\Windows\TemplateContent.cs (4)
711var deferredResourceReference = obj as DeferredResourceReference; 780DeferredResourceReference value = (DeferredResourceReference)resource.TryProvideValueInternal(TemplateLoadData.ServiceProviderWrapper, true/*allowDeferredReference*/, true/*mustReturnDeferredResourceReference*/);