3 writes to _ownerApps
PresentationFramework (3)
System\Windows\ResourceDictionary.cs (3)
1486
_ownerApps
= new WeakReferenceList(1);
1559
_ownerApps
= null;
2013
mergedDictionary.
_ownerApps
= new WeakReferenceList(_ownerApps.Count);
23 references to _ownerApps
PresentationFramework (23)
System\Windows\ResourceDictionary.cs (23)
1484
if (
_ownerApps
== null)
1488
else if (
_ownerApps
.Contains(app) && ContainsCycle(this))
1499
_ownerApps
.Add(app);
1553
if (
_ownerApps
!= null)
1555
_ownerApps
.Remove(app);
1557
if (
_ownerApps
.Count == 0)
1595
return (
_ownerApps
!= null &&
_ownerApps
.Contains(app));
1668
if (
_ownerApps
!= null)
1670
foreach (Object o in
_ownerApps
)
1732
if (
_ownerApps
is not null)
1763
deferredResourceReference =
_ownerApps
is not null ? new DeferredAppResourceReference(this, resourceKey) : new DeferredResourceReference(this, resourceKey);
2007
if (
_ownerApps
!= null)
2009
Invariant.Assert(
_ownerApps
.Count > 0);
2011
if (mergedDictionary.
_ownerApps
== null)
2013
mergedDictionary._ownerApps = new WeakReferenceList(
_ownerApps
.Count);
2016
foreach (object o in
_ownerApps
)
2056
if (
_ownerApps
!= null)
2058
Invariant.Assert(
_ownerApps
.Count > 0);
2060
foreach (Object o in
_ownerApps
)
2097
get { return
_ownerApps
; }
2298
Debug.Assert(IsThemeDictionary ||
_ownerApps
!= null || IsReadOnly, "This must be an App/Theme/Style/Template ResourceDictionary");
2329
if (IsThemeDictionary ||
_ownerApps
!= null || IsReadOnly)