Shell .Net4.5 地铁设计应用

发布于 2024-12-28 03:56:15 字数 126 浏览 3 评论 0原文

我想在 Metro Design 应用程序中运行另一个 .exe 文件。 .Net 4.5 中有 shell,但我知道它仅适用于 WPF 应用程序,不适用于 Metro Design 应用程序。如何在我的地铁设计应用程序中运行另一个流程?

I want to run another .exe file in my Metro Design Application. There is shell in .Net 4.5 but I understand that it works only in WPF applications and not in Metro Design apps. How can I run another process in my metro design application?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

童话里做英雄 2025-01-04 03:56:15

“Metro 风格应用程序是针对与传统 .NET Framework 略有不同的 .NET Framework 版本构建的”
对话主题关于将 .net 移植到 Metro 应用程序。
另请检查 .NET 的 Metro 风格应用程序概述

关于您的其他问题,metro 中没有像 SellExecute 或 createprocess 这样的 API,因此您无法按原样启动其他程序。
但是,您可以使用协议处理程序。 Metro 应用程序可以注册协议处理程序,或使用现有的处理程序。想想 http:// 或 mail:// 启动为该处理程序注册的默认应用程序。如果自定义处理程序尚未注册,您可以使用它们...

"Metro style apps build against a version of the .NET Framework that is a little different to the traditional .NET Framework" at this
Thread that talks about porting .net to Metro apps.
Also check .NET for Metro style apps overview

Regarding your other question there is no API in metro like SellExecute or createprocess so you cannot launch other programs as is.
You can however use protocol Handlers. A metro app can register a protocol handler, or use existing handlers. Think of http:// or mail:// that launches the default app registered for that handler. You can use custom handler if they are not yet registered ...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文