屏幕信息:
[
{
"BitsPerPixel": 32,
"Bounds": "0, 0, 1920, 1080",
"DeviceName": "\\\\.\\DISPLAY1",
"Primary": true,
"WorkingArea": "0, 0, 1920, 1020",
}, // 主屏,dpi缩放为125%
{
"BitsPerPixel": 32,
"Bounds": "0, -1080, 1920, 1080",
"DeviceName": "\\\\.\\DISPLAY2",
"Primary": false,
"WorkingArea": "0, -1080, 1920, 1080"
} // 副屏,位于主屏正上方,dpi缩放为100%
]
动作步骤:
WebView2浏览器窗口 - 打开网页
760,-1080,1160,-680(预期大小为400×400),其余留空结果:
窗口实际尺寸为319×319
