c# - Windows Phone 8.1 商店应用程序 - 商店链接

标签 c# windows-store-apps windows-8.1 windows-phone-8.1 windows-phone-store

在 Windows 8.1 应用程序中,我们可以使用 ms-windows-store 协议(protocol)链接到商店应用程序。

var storeURI = new Uri("ms-windows-store:PDP?PFN=<package family name>");
await Windows.System.Launcher.LaunchUriAsync(storeURI);

Windows Phone 8.1 有类似的方法吗?我不想链接到商店中应用程序的网页 ( http://windowsphone.com/s?appId=appGUID ),然后在商店中打开该应用程序。我想直接在商店中打开应用程序。

最佳答案

在 Windows Phone 8.1 中,我们可以使用 ms-windows-store 协议(protocol)链接到商店。

到详情页:

var uri = new Uri(string.Format("ms-windows-store:navigate?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);

查看页面:

var uri = new Uri(string.Format("ms-windows-store:reviewapp?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);

到搜索页面:

var uri = new Uri(string.Format(@"ms-windows-store:search?keyword={0}",keyword));
await Windows.System.Launcher.LaunchUriAsync(uri);

关于c# - Windows Phone 8.1 商店应用程序 - 商店链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25733552/

相关文章:

c# - 如何通过 MediaElement 播放库中的文件?

android - 安装了 Intel HAXM Android 模拟器的 CRITICAL_STRUCTURE_CORRUPTION BSOD Windows 8.1

c# - 正则表达式以 "AB"或 "EX"开头,仅使用字母数字值

C# - 找到重复键时选择两个值中的最小值

c# - 如何在 Windows 8 应用商店应用程序中访问 IMAP?

windows-phone-8 - 为什么我的 .Appx 文件没有显示在 Windows Phone 的“安装本地应用程序”菜单中?

windows - Windows 10 应用程序可以在 Windows Phone 8.1 中运行吗?

c# - 如何从 Windows 8.1 商店应用程序运行 .exe 文件?

c# - VB 和 C# do-while 的运行顺序有区别吗

c# - 为什么 ef 中的身份号码会跳到一个大数字?