Reputation: 27633
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
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