c# - open specific file in appropriate app from inside Windows 8 App -


i'm creating windows 8 app in need list specific files in page , let user open file. i'm using c# backend.

i want ask (as in image below), user when try open app listed in app page.

when user select specific app, file clicked should open in app.

when user select specific app, file clicked should open in app.

unlike previous versions of windows, user in control of file associations.

to show launch using window above, can refer complete example of launching options here.

the core of deciding on point on screen (which openwithposition in example below) , calling launchuriasync options set display window.

var options = new windows.system.launcheroptions();  options.displayapplicationpicker = true;  options.ui.invocationpoint = openwithposition;  options.ui.preferredplacement = windows.ui.popups.placement.below;   // launch uri.  bool success = await windows.system.launcher.launchuriasync(uri, options);  

the linked example code contains function can compute reasonable point given xaml element.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -