我可以在经典的 Windows 应用程序中嵌入 Windows 商店应用程序吗? [英] Can I embed a windows store app inside a classic windows application?

查看:34
本文介绍了我可以在经典的 Windows 应用程序中嵌入 Windows 商店应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Windows 10 上将通用 Windows 应用程序嵌入到经典的 Windows 应用程序中.这可能吗?

I would like to embed a universal windows app into a classic windows application on windows 10. Is this possible?

推荐答案

简短的回答是否定的.但是……根据您的尝试,以下信息可能对您有所帮助.

The short answer is no. However... depending on what you're trying to do, the information below may help you.

如果您只想获得桌面应用程序的外观和感觉,您应该知道 Windows 10 应用程序(与 Windows 8 应用程序不同)默认以非全屏模式运行,并且可以调整大小.Windows 10 中的桌面应用具有右上角的图标(最小/最大/调整大小),其外观类似于 UWP 应用在标题栏和右上角的图标中的外观.

If you just want to get the look and feel of a desktop application, you should be aware that Windows 10 apps (unlike Windows 8 apps) run in non-fullscreen mode by default, and can be resized. Desktop apps in Windows 10 have top-right icons (min/max/resize) that look similar to how UWP apps look in the title bar and top-right icons.

如果您使用 XAML 创建 UWP 应用,则无法将其嵌入桌面应用程序中.但是,如果您正在使用 HTML5 和 JavaScript 构建 Windows 10 应用程序,则可以将其重新打包到嵌入在桌面应用程序中的浏览器控件中.

If you're creating a UWP app with XAML, you won't be able to embed it in a desktop application. However, if you're building a Windows 10 app using HTML5 and JavaScript, you could repackage it inside a browser control embedded in a desktop application.

如果您使用 Unity 等 3rd 方工具创建游戏,则可以将其导出为 Windows 桌面应用程序,就像导出到适用于 Windows 10 的 UWP 应用程序一样轻松.Unity 可用于非游戏应用程序,因此您现在可以将其导出到桌面应用程序,并且仍然可以选择发布同一游戏/应用程序的 UWP.

If you're creating a game using a 3rd-party tool such as Unity, you can export it as a Windows desktop application just as easily as exporting to a UWP app for Windows 10. Unity can be used for non-game apps as well, so you could export it to a desktop application today, and still have the option of publish a UWP of the same game/app.

如果您想从您的 UWP 应用访问完整的 Windows SDK,您将无法这样做,因为您将受到 UWP 沙箱的限制.但是 Windows 10 在帮助您访问许多高级功能方面进行了许多改进,例如访问文件系统中的某些位置,因此您可以使用 UWP 提供的所有功能.

If you were thinking of accessing the full Windows SDK from you UWP app, you won't be able to do so, as you will be restricted by the UWP sandbox. But Windows 10 has made many improvements in helping you get access to many advanced features, e.g. accessing certain locations in the file system, so you may be able to get by with all that UWP has to offer.

如果您想避开 Windows 应用商店,您可以旁加载您的应用,正如之前的评论所建议的那样.

If you want to avoid the Windows Store, you may sideload your app, as suggested by an earlier comment.

希望有帮助!:)

这篇关于我可以在经典的 Windows 应用程序中嵌入 Windows 商店应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆