简体   繁体   English

弹出式身份验证 Window 在毛伊岛 Blazor

[英]Popup Authentication Window In Maui Blazor

I'm using blazor maui to develop a windows application and need to authenticate the user with graph, I can open up the URL in the default browser but would like a popup window instead as is the norm in GUI applications such as Outlook etc when having to login.我正在使用 blazor maui 开发 windows 应用程序,需要使用图形对用户进行身份验证,我可以在默认浏览器中打开 URL,但想要弹出窗口 window 而不是 GUI 应用程序中的规范,例如 Outlook 等登录。

The WebBrowser control for winforms seems to do what I need but is for winforms and doesn't appear to support .net 6 and maui. winforms 的WebBrowser 控件似乎可以满足我的需要,但它是针对 winforms 的,似乎不支持 .net 6 和 maui。 Webview2 also seems to do what I need but I can't get it to work in Maui as the ressources i've found are mainly focused on WPF. Webview2 似乎也可以满足我的需要,但我无法在毛伊岛使用它,因为我发现的资源主要集中在 WPF。

Is there anything like this in Maui and how would I go about implementing it?毛伊岛有这样的东西吗?我 go 如何实施它?

By creating a new contentpage and the showing it in a new window as shown here and in the contentpage having a webview as documented here .通过创建一个新的内容页面并将其显示在一个新的 window 中,如此处所示以及在具有 webview 的内容页面中显示,如此所述。 I achieved what I wanted, just remember to have height request and width request in your webview or it won't show.我实现了我想要的,只要记住在你的 webview 中有高度请求和宽度请求,否则它不会显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM