【发布时间】:2015-09-30 08:24:42
【问题描述】:
现在我想通过 C# 表单应用程序启动 Windows 8 Metro App,但我很难找到正确的方法...
我试过这些方法(我已经安装了 Metro App 并注册了协议):
1.
var success = await Windows.System.Launcher.LaunchUriAsync(new Uri("TestContent"));
在上面的“TestContent”中,我尝试了在我的电脑上注册的协议名称和Metro App的名称,但是出现了同样的错误“Access Denied”。
2.
Process p = new Process();
p.StartInfo.FileName = "ProtocolName://";
p.Start();
这次 Metro App 只显示了启动画面,并没有启动整个程序。
有什么想法吗?
提前谢谢你。
2015/10/01 添加:
读完这个问题:
[链接]stackoverflow.com/questions/18787609/…
我认为从 Windows 窗体运行 Metro 应用程序是不可能的。
【问题讨论】:
标签: c# wpf microsoft-metro prism