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