According to the issue, you may want ICoreWebView2Controller2::put_DefaultBackgroundColor.
How to set webview2 DefaultBackgroundColor in a Win32 project?
Vishnu Gopalakrishnan
126
Reputation points
I am using WebView2 in an OCX. I wish to add the default background color for the webview2 to avoid the initial flickering. I tried this https://github.com/MicrosoftEdge/WebView2Feedback/issues/1621 But didn't work. Looking forward to hear the answers. Also, I didn't see a method to set CoreWebView2Controller.DefaultBackgroundColor Property in win32.
1 answer
Sort by: Most helpful
-
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
2023-04-13T02:14:39.77+00:00