ispiro
ispiro

Reputation: 27633

How to open the "Open With" dialog (Windows Store App)?

I want my app to let a user open a file with the "Open With" dialog even if it has a default application that opens that type of file. How can I achieve that?

Upvotes: 1

Views: 247

Answers (1)

Rob Caplan - MSFT
Rob Caplan - MSFT

Reputation: 21889

Call Launcher.LaunchFileAsync and set LauncherOptions.DisplayApplicationPicker to true:

var options = new Windows.System.LauncherOptions();
options.DisplayApplicationPicker = true;

bool success = await Windows.System.Launcher.LaunchFileAsync(file, options);

Upvotes: 1

Related Questions