6 references to DpiAwarenessContext
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (3)
419
internal DPI_AWARENESS_CONTEXT DpiAwarenessContext => _window.
DpiAwarenessContext
;
10220
Application.UnparkHandle(this, _window.
DpiAwarenessContext
);
10234
Application.UnparkHandle(this, _window.
DpiAwarenessContext
);
System\Windows\Forms\NativeWindow.cs (3)
424
using (ScaleHelper.EnterDpiAwarenessScope(
DpiAwarenessContext
, DPI_HOSTING_BEHAVIOR.DPI_HOSTING_BEHAVIOR_MIXED))
484
Debug.Assert(
DpiAwarenessContext
.IsEquivalent(controlHandleDpiContext),
485
$"Control's expected DpiAwarenessContext - {
DpiAwarenessContext
} is different from the DpiAwarenessContext on the Handle created for the control - {controlHandleDpiContext}");