2 writes to _hwndNotify
PresentationFramework (2)
System\Windows\SystemResources.cs (2)
1048_hwndNotify = new Dictionary<DpiUtil.HwndDpiInfo, SecurityCriticalDataClass<HwndWrapper>>(); 1163_hwndNotify = null;
25 references to _hwndNotify
PresentationFramework (25)
System\Windows\SystemResources.cs (25)
1029/// we would create one and add it to our list in <see cref="_hwndNotify"/> and return the newly created notify-window. 1043if (_hwndNotify == null || 1045_hwndNotify.Count == 0 || 1046_hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null) 1077if (!_hwndNotify.ContainsKey(hwndDpiInfo)) 1092return _hwndNotify.ContainsKey(hwndDpiInfo); 1097/// corresponding <see cref="HwndWrapper"/> to <see cref="_hwndNotify"/>, and registers relevant hooks 1103/// Assumes that <see cref="_hwndNotify"/> and <see cref="_hwndNotifyHook"/> have been initialized. This method 1106/// <returns><see cref="DpiUtil.HwndDpiInfo"/> of the newly created <see cref="HwndWrapper"/>, which is also a new key added into <see cref="_hwndNotify"/></returns> 1109Debug.Assert(_hwndNotify != null); 1139Debug.Assert(!_hwndNotify.ContainsKey(hwndDpiInfo)); 1142_hwndNotify[hwndDpiInfo] = new SecurityCriticalDataClass<HwndWrapper>(hwndNotify); 1143_hwndNotify[hwndDpiInfo].Value.Dispatcher.ShutdownFinished += OnShutdownFinished; 1145_hwndNotify[hwndDpiInfo].Value.AddHook(_hwndNotifyHook[hwndDpiInfo]); 1153if (_hwndNotify != null && _hwndNotify.Count != 0) 1157_hwndNotify[hwndDpiInfo].Value.Dispose(); 1162_hwndNotify?.Clear(); 1307&& _hwndNotify != null 1308&& _hwndNotify.Count != 0) 1563var hwndDpiInfo = _hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue); 1567return _hwndNotify[hwndDpiInfo].Value; 1650return _hwndNotify[hwndDpiInfo].Value; 1662if (_hwndNotify != null && _hwndNotify.Count != 0)