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