wpf - How to launch a Windows8 Metro App by C# form application? -
now want launch windows 8 metro app c# form application, it's hard me find right way...
i had tried these ways(i had installed metro app , registered protocol):
1.
var success = await windows.system.launcher.launchuriasync(new uri("testcontent"));
in "testcontent" above, tried protocol name registered on computer , metro app's name, same error "access denied" occurred.
2.
process p = new process(); p.startinfo.filename = "protocolname://"; p.start();
this time metro app showed splash screen didn't launch whole program.
any ideas?
thank in advance.
2015/10/01 add:
after reading question:
[link]stackoverflow.com/questions/18787609/…
i think impossible run metro app windows form.
the right format launch :
uri uri = new uri("protocolname://anything"); await windows.system.launcher.launchuriasync(uri);
and, make sure you're doing foreground app, i.e. not background task or toast notification or tile .. etc.
Comments
Post a Comment