Which SDK to use WinUI3 or UWP for a native windows app?

huangapple go评论59阅读模式
英文:

Which SDK to use WinUI3 or UWP for a native windows app?

问题

以下是已翻译的内容:

"对于构建本机的 Windows 应用程序,该应用程序可以在 WebView 中启动多个 Web 应用程序,我尝试过使用 WinUI3 进行概念验证。主要用例是从 WebView 中加载的 Web 应用程序进行 USB 外围设备集成和单点登录。在阅读了更多的微软文档后,我发现某些功能不受支持,并且与 UWP 相比存在一些性能上的缓慢。我是否应该选择 UWP 来开发新应用程序,还是建议使用 WinUI3 来进行新应用程序的开发。"

"支持的功能列表文档 - https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/what-is-supported"

"还可以看到 WebAuthenticationBroker 也在不受支持的列表中。对于使用哪个 SDK 的任何指导,UWP 还是 WinUI3?"

英文:

For building a native windows app which can launch multiple web applications in a webview , i have tried a poc using WinUI3 .Main usecase for this is usb peripheral integrations from the webapps loaded in webview and Single Sign On . Reading more on microsoft documentation , i see some features not supported and some slowness compared to UWP. Do i need to go with UWP for a new app or is the recommendation to go with WInUI3 for a new app development .

Supported Feature List Doc - https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/what-is-supported

Can see WebAuthenticationBroker also in not supported list .
Any guidance on what sdk to use . UWP or WinUI3

答案1

得分: 2

WinUI3 是 Windows 桌面的新技术。尽管它现在还不完美,但它将会得到改进。目前,并非所有的 WinRT API 都能在 WinUI3 应用中使用,但你可以使用 win32 API 来实现你想要的功能。所以我建议,如果你熟悉 win32 API,你可以使用 win32 API 来绕过这些限制。

与 WinUI3 相比,UWP 更加稳定。UWP 可以使用所有的 WinRT API。但在 UWP 上有一些功能不是最新的。例如,一些来自 WebView2 控件的功能在 UWP 上缺失,但在 WinUI 上是可用的,比如打印。另一个问题是,UWP 应用有一些限制,比如系统隔离以访问本地文件和本地网络资源。

英文:

WinUI3 is the new technology for Windows Desktop. Although it is not perfect now, but it will be improved. Currently, not all the WinRT APIs are able to be used in WinUI3 apps, but you could use win32 APIs to achieve what you want. So I'd suggest you use WinUI if you are familiar with win32 API can you use win32 API to bypass the limitations.

Compared to WinUI3, UWP is more stable. UWP could use all the WinRT APIs. But some features on UWP are not up to date. For example, some features from WebView2 controls are missing on UWP but available on WinUI like print. Another thing is that UWP apps have limitations like system isolation for accessing local files and local network resources.

huangapple
  • 本文由 发表于 2023年2月18日 03:29:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/75488529.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定