On C#, how to use transparency in Webview2? Is it possible?
Does it work in WebBrowser but not WebView2?
On C#, how to use transparency in Webview2? Is it possible?
Does it work in WebBrowser but not WebView2?
You can change the WebView2.DefaultBackgroundColor (which defaults to white) to transparent to have a transparent background:
webView2.DefaultBackgroundColor = System.Drawing.Color.Transparent;
The WebView2 WPF sample app demonstrates this feature.