是的,就是这样的问题。看来也没有得到很好的解决啊,就没有几个回复的。
[Asm] 纯文本查看 复制代码 You own the window and other controls, so to go fullscreen you need to make it possible for the WebView2 control to display using the full screen. You can see an example of this in Win32 in our sample app here:
[url]https://github.com/MicrosoftEdge/WebView2Samples/blob/a71b5c77deb6b52758b8e5bb769a5c3c81ca1824/SampleApps/WebView2APISample/AppWindow.cpp#L1603[/url]
In WPF/Winforms, you will need to do something similar - hide non-WebView2 controls, and then make the window go fullscreen, in response to the CoreWebView2.ContainsFullScreenElementChanged event. Let me know if you have more questions about this. |