2 writes to _hwndNotify
PresentationFramework (2)
System\Windows\SystemResources.cs (2)
1048
_hwndNotify
= new Dictionary<DpiUtil.HwndDpiInfo, SecurityCriticalDataClass<HwndWrapper>>();
1163
_hwndNotify
= null;
25 references to _hwndNotify
PresentationFramework (25)
System\Windows\SystemResources.cs (25)
1029
/// we would create one and add it to our list in <see cref="
_hwndNotify
"/> and return the newly created notify-window.
1043
if (
_hwndNotify
== null ||
1045
_hwndNotify
.Count == 0 ||
1046
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null)
1077
if (!
_hwndNotify
.ContainsKey(hwndDpiInfo))
1092
return
_hwndNotify
.ContainsKey(hwndDpiInfo);
1097
/// corresponding <see cref="HwndWrapper"/> to <see cref="
_hwndNotify
"/>, and registers relevant hooks
1103
/// Assumes that <see cref="
_hwndNotify
"/> and <see cref="_hwndNotifyHook"/> have been initialized. This method
1106
/// <returns><see cref="DpiUtil.HwndDpiInfo"/> of the newly created <see cref="HwndWrapper"/>, which is also a new key added into <see cref="
_hwndNotify
"/></returns>
1109
Debug.Assert(
_hwndNotify
!= null);
1139
Debug.Assert(!
_hwndNotify
.ContainsKey(hwndDpiInfo));
1142
_hwndNotify
[hwndDpiInfo] = new SecurityCriticalDataClass<HwndWrapper>(hwndNotify);
1143
_hwndNotify
[hwndDpiInfo].Value.Dispatcher.ShutdownFinished += OnShutdownFinished;
1145
_hwndNotify
[hwndDpiInfo].Value.AddHook(_hwndNotifyHook[hwndDpiInfo]);
1153
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)
1157
_hwndNotify
[hwndDpiInfo].Value.Dispose();
1162
_hwndNotify
?.Clear();
1307
&&
_hwndNotify
!= null
1308
&&
_hwndNotify
.Count != 0)
1563
var hwndDpiInfo =
_hwndNotify
.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue);
1567
return
_hwndNotify
[hwndDpiInfo].Value;
1650
return
_hwndNotify
[hwndDpiInfo].Value;
1662
if (
_hwndNotify
!= null &&
_hwndNotify
.Count != 0)