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