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