【问题标题】:WebView2: How to enable Password Autofill?WebView2:如何启用密码自动填充?
【发布时间】:2022-01-01 13:08:27
【问题描述】:

如何在 WebView2 上将“IsPasswordAutofillEnabled”属性更改为“TRUE”?

我已经无数次阅读Microsoft page,但实际上无法弄清楚如何在 Visual Studio 中进行操作。

【问题讨论】:

    标签: javascript c# visual-studio webview2


    【解决方案1】:

    此功能是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.的介绍文档

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-02
      • 1970-01-01
      • 2023-01-10
      • 2014-11-07
      • 2019-04-01
      • 2019-04-05
      • 2010-11-29
      • 1970-01-01
      相关资源
      最近更新 更多