2 writes to _hwndNotify
PresentationFramework (2)
System\Windows\SystemResources.cs (2)
1049_hwndNotify = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>(); 1164_hwndNotify = null;
25 references to _hwndNotify
PresentationFramework (25)
System\Windows\SystemResources.cs (25)
1030/// we would create one and add it to our list in <see cref="_hwndNotify"/> and return the newly created notify-window. 1044if (_hwndNotify == null || 1046_hwndNotify.Count == 0 || 1047_hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null) 1078if (!_hwndNotify.ContainsKey(hwndDpiInfo)) 1093return _hwndNotify.ContainsKey(hwndDpiInfo); 1098/// corresponding <see cref="HwndWrapper"/> to <see cref="_hwndNotify"/>, and registers relevant hooks 1104/// Assumes that <see cref="_hwndNotify"/> and <see cref="_hwndNotifyHook"/> have been initialized. This method 1107/// <returns><see cref="DpiUtil.HwndDpiInfo"/> of the newly created <see cref="HwndWrapper"/>, which is also a new key added into <see cref="_hwndNotify"/></returns> 1110Debug.Assert(_hwndNotify != null); 1140Debug.Assert(!_hwndNotify.ContainsKey(hwndDpiInfo)); 1143_hwndNotify[hwndDpiInfo] = hwndNotify; 1144_hwndNotify[hwndDpiInfo].Dispatcher.ShutdownFinished += OnShutdownFinished; 1146_hwndNotify[hwndDpiInfo].AddHook(_hwndNotifyHook[hwndDpiInfo]); 1154if (_hwndNotify != null && _hwndNotify.Count != 0) 1158_hwndNotify[hwndDpiInfo].Dispose(); 1163_hwndNotify?.Clear(); 1308&& _hwndNotify != null 1309&& _hwndNotify.Count != 0) 1570var hwndDpiInfo = _hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue); 1574return _hwndNotify[hwndDpiInfo]; 1657return _hwndNotify[hwndDpiInfo]; 1669if (_hwndNotify != null && _hwndNotify.Count != 0)