[英]WebView2: How to enable Password Autofill?
如何在 WebView2 上將“IsPasswordAutofillEnabled”屬性更改為“TRUE”?
我已經無數次閱讀Microsoft 頁面,但實際上無法弄清楚如何在 Visual Studio 中進行操作。
此功能是Microsoft.Web.WebView2 package 1.0.865-prerelease
的實驗性功能,僅存在於此版本中。
如果您想使用它,只需在 package 參考接口中添加以下 package 參考:
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.865-prerelease" />
像這樣修改屬性:
webView.CoreWebView2.Settings.IsPasswordAutofillEnabled = true;(webView is the control's name)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.