天天看點

Windows Phone 8.1商店啟動協定

最近開發wp8.1已經兩個月了,感覺坑不少,原來8時代的商店api多明了,微軟不給封裝就算了,至少你要在msdn上明顯的地方标注下啊...................順便在吐槽下bing,找了一個下午沒找到有用的資料,最起碼你也整合一下 微軟生态的資料啊..................

前面純屬吐槽可以略過.................

下面正題,其實就是第三方啟動協定,隻是我們不知道啟動協定的标準罷了....................

var uri = new Uri(string.Format(@"ms-windows-store:navigate?appid={0}", appid));商店根據appid跳轉

var uri = new Uri(string.Format(@"ms-windows-store:search?keyword={0}",keyword));關鍵字搜尋

var uri = new Uri(string.Format(@"ms-windows-storereviewapp?appid={0}", appid));商店根據appid跳轉評論

await Windows.System.Launcher.LaunchUriAsync(uri);

以後會更新更多的wp8.1的坑,大家一起讨論學習哈

繼續閱讀