3 writes to _ownerApps
PresentationFramework (3)
System\Windows\ResourceDictionary.cs (3)
1494
_ownerApps
= new WeakReferenceList(1);
1567
_ownerApps
= null;
2021
mergedDictionary.
_ownerApps
= new WeakReferenceList(_ownerApps.Count);
23 references to _ownerApps
PresentationFramework (23)
System\Windows\ResourceDictionary.cs (23)
1492
if (
_ownerApps
== null)
1496
else if (
_ownerApps
.Contains(app) && ContainsCycle(this))
1507
_ownerApps
.Add(app);
1561
if (
_ownerApps
!= null)
1563
_ownerApps
.Remove(app);
1565
if (
_ownerApps
.Count == 0)
1603
return (
_ownerApps
!= null &&
_ownerApps
.Contains(app));
1676
if (
_ownerApps
!= null)
1678
foreach (Object o in
_ownerApps
)
1740
if (
_ownerApps
is not null)
1771
deferredResourceReference =
_ownerApps
is not null ? new DeferredAppResourceReference(this, resourceKey) : new DeferredResourceReference(this, resourceKey);
2015
if (
_ownerApps
!= null)
2017
Invariant.Assert(
_ownerApps
.Count > 0);
2019
if (mergedDictionary.
_ownerApps
== null)
2021
mergedDictionary._ownerApps = new WeakReferenceList(
_ownerApps
.Count);
2024
foreach (object o in
_ownerApps
)
2064
if (
_ownerApps
!= null)
2066
Invariant.Assert(
_ownerApps
.Count > 0);
2068
foreach (Object o in
_ownerApps
)
2105
get { return
_ownerApps
; }
2306
Debug.Assert(IsThemeDictionary ||
_ownerApps
!= null || IsReadOnly, "This must be an App/Theme/Style/Template ResourceDictionary");
2337
if (IsThemeDictionary ||
_ownerApps
!= null || IsReadOnly)