2 writes to _hwndNotify
PresentationFramework (2)
System\Windows\SystemResources.cs (2)
1028
_hwndNotify
= new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>();
1143
_hwndNotify
= null;
25 references to _hwndNotify
PresentationFramework (25)
System\Windows\SystemResources.cs (25)
1009
/// we would create one and add it to our list in <see cref="
_hwndNotify
"/> and return the newly created notify-window.
1023
if (
_hwndNotify
== null ||
1025
_hwndNotify
.Count == 0 ||
1026
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null)
1057
if (!
_hwndNotify
.ContainsKey(hwndDpiInfo))
1072
return
_hwndNotify
.ContainsKey(hwndDpiInfo);
1077
/// corresponding <see cref="HwndWrapper"/> to <see cref="
_hwndNotify
"/>, and registers relevant hooks
1083
/// Assumes that <see cref="
_hwndNotify
"/> and <see cref="_hwndNotifyHook"/> have been initialized. This method
1086
/// <returns><see cref="DpiUtil.HwndDpiInfo"/> of the newly created <see cref="HwndWrapper"/>, which is also a new key added into <see cref="
_hwndNotify
"/></returns>
1089
Debug.Assert(
_hwndNotify
!= null);
1119
Debug.Assert(!
_hwndNotify
.ContainsKey(hwndDpiInfo));
1122
_hwndNotify
[hwndDpiInfo] = hwndNotify;
1123
_hwndNotify
[hwndDpiInfo].Dispatcher.ShutdownFinished += OnShutdownFinished;
1125
_hwndNotify
[hwndDpiInfo].AddHook(_hwndNotifyHook[hwndDpiInfo]);
1133
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)
1137
_hwndNotify
[hwndDpiInfo].Dispose();
1142
_hwndNotify
?.Clear();
1285
&&
_hwndNotify
!= null
1286
&&
_hwndNotify
.Count != 0)
1547
var hwndDpiInfo =
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue);
1551
return
_hwndNotify
[hwndDpiInfo];
1634
return
_hwndNotify
[hwndDpiInfo];
1646
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)