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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -