I want to disable devtools from Webview2 component in wpf application .net5. Please help me how to do it?
That is easy, after the WebView2
has been initialized.
Simply do:
webView21.CoreWebView2.Settings.AreDevToolsEnabled = false;
where 'webView21' is the name of the WebView2
control.
You can see all settings here: CoreWebView2Settings Class Definition
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With