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