【发布时间】:2022-01-01 13:08:27
【问题描述】:
如何在 WebView2 上将“IsPasswordAutofillEnabled”属性更改为“TRUE”?
我已经无数次阅读Microsoft page,但实际上无法弄清楚如何在 Visual Studio 中进行操作。
【问题讨论】:
标签: javascript c# visual-studio webview2
如何在 WebView2 上将“IsPasswordAutofillEnabled”属性更改为“TRUE”?
我已经无数次阅读Microsoft page,但实际上无法弄清楚如何在 Visual Studio 中进行操作。
【问题讨论】:
标签: javascript c# visual-studio webview2
此功能是Microsoft.Web.WebView2 package 1.0.865-prerelease的实验性功能,仅存在于该版本中。
如果要使用,只需在包引用界面添加如下包引用即可:
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.865-prerelease" />
像这样修改属性:
webView.CoreWebView2.Settings.IsPasswordAutofillEnabled = true;(webView is the control's name)
这里是webview2.的介绍文档
【讨论】: