2 writes to _hwndNotify
PresentationFramework (2)
System\Windows\SystemResources.cs (2)
1042
_hwndNotify
= new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>();
1157
_hwndNotify
= null;
25 references to _hwndNotify
PresentationFramework (25)
System\Windows\SystemResources.cs (25)
1023
/// we would create one and add it to our list in <see cref="
_hwndNotify
"/> and return the newly created notify-window.
1037
if (
_hwndNotify
== null ||
1039
_hwndNotify
.Count == 0 ||
1040
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null)
1071
if (!
_hwndNotify
.ContainsKey(hwndDpiInfo))
1086
return
_hwndNotify
.ContainsKey(hwndDpiInfo);
1091
/// corresponding <see cref="HwndWrapper"/> to <see cref="
_hwndNotify
"/>, and registers relevant hooks
1097
/// Assumes that <see cref="
_hwndNotify
"/> and <see cref="_hwndNotifyHook"/> have been initialized. This method
1100
/// <returns><see cref="DpiUtil.HwndDpiInfo"/> of the newly created <see cref="HwndWrapper"/>, which is also a new key added into <see cref="
_hwndNotify
"/></returns>
1103
Debug.Assert(
_hwndNotify
!= null);
1133
Debug.Assert(!
_hwndNotify
.ContainsKey(hwndDpiInfo));
1136
_hwndNotify
[hwndDpiInfo] = hwndNotify;
1137
_hwndNotify
[hwndDpiInfo].Dispatcher.ShutdownFinished += OnShutdownFinished;
1139
_hwndNotify
[hwndDpiInfo].AddHook(_hwndNotifyHook[hwndDpiInfo]);
1147
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)
1151
_hwndNotify
[hwndDpiInfo].Dispose();
1156
_hwndNotify
?.Clear();
1301
&&
_hwndNotify
!= null
1302
&&
_hwndNotify
.Count != 0)
1563
var hwndDpiInfo =
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue);
1567
return
_hwndNotify
[hwndDpiInfo];
1650
return
_hwndNotify
[hwndDpiInfo];
1662
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)