2 writes to _hwndNotify
PresentationFramework (2)
System\Windows\SystemResources.cs (2)
1027
_hwndNotify
= new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>();
1142
_hwndNotify
= null;
21 references to _hwndNotify
PresentationFramework (21)
System\Windows\SystemResources.cs (21)
1022
if (
_hwndNotify
== null ||
1024
_hwndNotify
.Count == 0 ||
1025
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null)
1056
if (!
_hwndNotify
.ContainsKey(hwndDpiInfo))
1071
return
_hwndNotify
.ContainsKey(hwndDpiInfo);
1088
Debug.Assert(
_hwndNotify
!= null);
1118
Debug.Assert(!
_hwndNotify
.ContainsKey(hwndDpiInfo));
1121
_hwndNotify
[hwndDpiInfo] = hwndNotify;
1122
_hwndNotify
[hwndDpiInfo].Dispatcher.ShutdownFinished += OnShutdownFinished;
1124
_hwndNotify
[hwndDpiInfo].AddHook(_hwndNotifyHook[hwndDpiInfo]);
1132
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)
1136
_hwndNotify
[hwndDpiInfo].Dispose();
1141
_hwndNotify
?.Clear();
1284
&&
_hwndNotify
!= null
1285
&&
_hwndNotify
.Count != 0)
1546
var hwndDpiInfo =
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue);
1550
return
_hwndNotify
[hwndDpiInfo];
1633
return
_hwndNotify
[hwndDpiInfo];
1645
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)