2 writes to _hwndNotify
PresentationFramework (2)
src\Framework\System\Windows\SystemResources.cs (2)
1075_hwndNotify = new Dictionary<DpiUtil.HwndDpiInfo, SecurityCriticalDataClass<HwndWrapper>>(); 1222_hwndNotify = null;
25 references to _hwndNotify
PresentationFramework (25)
src\Framework\System\Windows\SystemResources.cs (25)
1051/// we would create one and add it to our list in <see cref="_hwndNotify"/> and return the newly created notify-window. 1070if (_hwndNotify == null || 1072_hwndNotify.Count == 0 || 1073_hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null) 1100if (_hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == dpiContextValue) == null) 1128if (!_hwndNotify.ContainsKey(hwndDpiInfo)) 1146/// corresponding <see cref="HwndWrapper"/> to <see cref="_hwndNotify"/>, and registers relevant hooks 1152/// Assumes that <see cref="_hwndNotify"/> and <see cref="_hwndNotifyHook"/> have been initialized. This method 1155/// <returns><see cref="DpiUtil.HwndDpiInfo"/> of the newly created <see cref="HwndWrapper"/>, which is also a new key added into <see cref="_hwndNotify"/></returns> 1163Debug.Assert(_hwndNotify != null); 1193Debug.Assert(!_hwndNotify.ContainsKey(hwndDpiInfo)); 1196_hwndNotify[hwndDpiInfo] = new SecurityCriticalDataClass<HwndWrapper>(hwndNotify); 1197_hwndNotify[hwndDpiInfo].Value.Dispatcher.ShutdownFinished += OnShutdownFinished; 1199_hwndNotify[hwndDpiInfo].Value.AddHook(_hwndNotifyHook[hwndDpiInfo]); 1212if (_hwndNotify != null && _hwndNotify.Count != 0) 1216_hwndNotify[hwndDpiInfo].Value.Dispose(); 1221_hwndNotify?.Clear(); 1371&& _hwndNotify != null 1372&& _hwndNotify.Count != 0) 1640var hwndDpiInfo = _hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue); 1644return _hwndNotify[hwndDpiInfo].Value; 1732return _hwndNotify[hwndDpiInfo].Value; 1741if (_hwndNotify != null && _hwndNotify.Count != 0)