3 types derived from DeferredResourceReference
PresentationFramework (3)
System\Windows\SystemResources.cs (3)
1873internal class DeferredAppResourceReference : DeferredResourceReference 1906internal class DeferredThemeResourceReference : DeferredResourceReference 1988internal class DeferredResourceReferenceHolder : DeferredResourceReference
2 instantiations of DeferredResourceReference
PresentationFramework (2)
System\Windows\ResourceDictionary.cs (2)
1738deferredResourceReference = new DeferredResourceReference(this, resourceKey); 1763deferredResourceReference = _ownerApps is not null ? new DeferredAppResourceReference(this, resourceKey) : new DeferredResourceReference(this, resourceKey);
44 references to DeferredResourceReference
PresentationFramework (44)
System\Windows\Markup\BamlRecordReader.cs (7)
1890DeferredResourceReference prefetchedValue = (DeferredResourceReference)staticResourceValues[bamlStaticResourceIdRecord.StaticResourceId]; 1965DeferredResourceReference prefetchedValue = 1966(DeferredResourceReference)staticResourceValues[staticResourceId]; 5659internal StaticResourceHolder(object resourceKey, DeferredResourceReference prefetchedValue) : base(resourceKey) 5668internal override DeferredResourceReference PrefetchedValue 5677private DeferredResourceReference _prefetchedValue;
System\Windows\ResourceDictionary.cs (9)
1306Debug.Assert(obj is DeferredResourceReference); 1307staticResources[i] = new StaticResourceHolder(keyValue, obj as DeferredResourceReference); 1727DeferredResourceReference deferredResourceReference; 1795DeferredResourceReference deferredResourceReference = o as DeferredResourceReference; 1815foreach (DeferredResourceReference deferredResourceReference in _deferredResourceReferencesList) 1822DeferredResourceReference deferredResourceReference = _deferredResourceReferencesList.Get(resourceKey); 1829void Inflate(DeferredResourceReference deferredResourceReference) 2536foreach (DeferredResourceReference drr in _weakDeferredResourceReferences)
System\Windows\ResourceReferenceExpression.cs (5)
161DeferredResourceReference deferredResourceReference = resource as DeferredResourceReference; 262DeferredResourceReference deferredResourceReference = _cachedResourceValue as DeferredResourceReference; 455internal void OnDeferredResourceInflated(DeferredResourceReference deferredResourceReference)
System\Windows\StaticResourceExtension.cs (5)
79internal virtual DeferredResourceReference PrefetchedValue 131DeferredResourceReference deferredReference = value as DeferredResourceReference; 165DeferredResourceReference prefetchedValue = PrefetchedValue; 336if (!(val is DeferredResourceReference))
System\Windows\SystemResources.cs (14)
2037internal class DeferredResourceReferenceList : IEnumerable<DeferredResourceReference> 2040private readonly Dictionary<object, WeakReference<DeferredResourceReference>> _entries = new(); 2043public void AddOrSet(DeferredResourceReference deferredResourceReference) 2047_entries[deferredResourceReference.Key] = new WeakReference<DeferredResourceReference>(deferredResourceReference); 2051public void Remove(DeferredResourceReference deferredResourceReference) 2059internal DeferredResourceReference Get(object resourceKey) 2070if (weakReference.TryGetTarget(out var deferredResourceReference)) 2089foreach (WeakReference<DeferredResourceReference> weakReference in _entries.Values) 2091if (weakReference.TryGetTarget(out var deferredResourceReference)) 2118private void Purge(List<DeferredResourceReference> aliveItems) 2125foreach (KeyValuePair<object, WeakReference<DeferredResourceReference>> entry in _entries) 2127if (entry.Value.TryGetTarget(out var item) is false) 2144public IEnumerator<DeferredResourceReference> GetEnumerator() 2146var aliveItems = new List<DeferredResourceReference>(_entries.Count);
System\Windows\TemplateContent.cs (4)
713var deferredResourceReference = obj as DeferredResourceReference; 782DeferredResourceReference value = (DeferredResourceReference)resource.TryProvideValueInternal(TemplateLoadData.ServiceProviderWrapper, true/*allowDeferredReference*/, true/*mustReturnDeferredResourceReference*/);