C# 我可以启动另一个win8应用程序吗?

C# 我可以启动另一个win8应用程序吗?,c#,windows-8,windows-runtime,launch,app-launcher,C#,Windows 8,Windows Runtime,Launch,App Launcher,是否可能,如果可能,如何启动已从另一个windows 8.1应用程序安装到计算机上的windows 8.1应用程序 我发现,对于windows phone 8,您可以使用以下功能: IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher(); apps.First().Launch(string.Empty);

是否可能,如果可能,如何启动已从另一个windows 8.1应用程序安装到计算机上的windows 8.1应用程序

我发现,对于windows phone 8,您可以使用以下功能:

IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
apps.First().Launch(string.Empty);
IEnumerable apps=Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
apps.First().Launch(string.Empty);
但我找不到与Windows8相同的版本

我已经读过,但找不到我问题的答案


提前感谢您的帮助。

下面是一个示例,您可以打开一个PDF文件,让用户选择他们想要使用的应用程序。如果未安装应用程序,则会提示用户从应用商店下载

还请注意,我将应用程序设置为侧对齐,并在另一个应用程序中并排打开文件

private async void TextBlock_Tapped(object sender, TappedRoutedEventArgs e)
{
    StorageFile pdf = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/irisclasson.pdf"));

    await
        Launcher.LaunchFileAsync(pdf,
            new LauncherOptions
            {
                PreferredApplicationDisplayName = "PDF Touch",
                PreferredApplicationPackageFamilyName = "162a2931-8ee6-4a56-9570-53282525d7a3",

                DisplayApplicationPicker = true,
                DesiredRemainingView = ViewSizePreference.UseHalf
            });
}


如果他们安装了首选应用程序,然后将“显示应用程序选择器”设置为false,首选应用程序是否会自动打开?这也只能通过打开文件来实现吗?-也谢谢你迄今为止的帮助