如何打开 "Open With" 对话框(Windows 应用商店)?
How to open the "Open With" dialog (Windows Store App)?
我希望我的应用程序允许用户使用 "Open With" 对话框打开文件,即使它具有打开该类型文件的默认应用程序。我怎样才能做到这一点?
调用 Launcher。LaunchFileAsync and set LauncherOptions.DisplayApplicationPicker 为真:
var options = new Windows.System.LauncherOptions();
options.DisplayApplicationPicker = true;
bool success = await Windows.System.Launcher.LaunchFileAsync(file, options);
我希望我的应用程序允许用户使用 "Open With" 对话框打开文件,即使它具有打开该类型文件的默认应用程序。我怎样才能做到这一点?
调用 Launcher。LaunchFileAsync and set LauncherOptions.DisplayApplicationPicker 为真:
var options = new Windows.System.LauncherOptions();
options.DisplayApplicationPicker = true;
bool success = await Windows.System.Launcher.LaunchFileAsync(file, options);