首页 文章

适用于Windows Phone 8.1的MarketplaceSearchTask

提问于
浏览
1

我从最近2天一直在寻找Windows Phone 8.1的市场搜索任务,我从以下链接获得了答案:

Are there any class in WinRT as MarketPlaceReviewTask in WP?

我尝试了给定的解决方案,但它没有按照建议工作 .

那么,任何人都可以帮助我在Windows Phone 8.1上使用市场搜索功能吗? Silverlight手机具有相同的功能 .

enter image description here

2 回答

  • 0

    在Windows Phone 8.1中,您可以使用Launcher启动特殊URI:

    await Windows.System.Launcher.LaunchUriAsync(
        new Uri(string.Format("ms-windows-store:search?{0}={1}", type ,searchTerms)));
    

    type 可以是'keyword'或'publisher', searchTerms 是您要搜索的关键字 .

  • 3

    您仍然可以使用URI schemes for WP8.0(WP8.1具有向后兼容性) . 正如我已经尝试过下面的代码工作正常:

    await Launcher.LaunchUriAsync(new Uri(@"zune:search?keyword=test&contenttype=app"));
    

    在上面的链接中,您还可以找到一些其他不错的URI - 导航到应用程序,搜索特定的发布者等等 .

相关问题