Rez*_*eza 13 c# windows-store-apps windows-8.1 windows-phone-store windows-phone-8.1
在Windows 8.1应用程序中,我们可以使用ms-windows-store协议链接到商店应用程序.
var storeURI = new Uri("ms-windows-store:PDP?PFN=<package family name>");
await Windows.System.Launcher.LaunchUriAsync(storeURI);
Run Code Online (Sandbox Code Playgroud)
Windows Phone 8.1中是否有类似的方法?我不想链接到商店应用程序的网页(http://windowsphone.com/s?appId=appGUID),然后在商店中打开应用程序.我想直接在商店中打开应用程序.
Chr*_*hao 32
在Windows Phone 8.1中,我们可以使用ms-windows-store协议链接到商店.
详细页面:
var uri = new Uri(string.Format("ms-windows-store:navigate?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);
Run Code Online (Sandbox Code Playgroud)
要查看页面:
var uri = new Uri(string.Format("ms-windows-store:reviewapp?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);
Run Code Online (Sandbox Code Playgroud)
要搜索页面:
var uri = new Uri(string.Format(@"ms-windows-store:search?keyword={0}",keyword));
await Windows.System.Launcher.LaunchUriAsync(uri);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7025 次 |
| 最近记录: |