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.
1070
if (
_hwndNotify
== null ||
1072
_hwndNotify
.Count == 0 ||
1073
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null)
1100
if (
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == dpiContextValue) == null)
1128
if (!
_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>
1163
Debug.Assert(
_hwndNotify
!= null);
1193
Debug.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]);
1212
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)
1216
_hwndNotify
[hwndDpiInfo].Value.Dispose();
1221
_hwndNotify
?.Clear();
1371
&&
_hwndNotify
!= null
1372
&&
_hwndNotify
.Count != 0)
1640
var hwndDpiInfo =
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue);
1644
return
_hwndNotify
[hwndDpiInfo].Value;
1732
return
_hwndNotify
[hwndDpiInfo].Value;
1741
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)