在 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/