Launching the Windows Store listing from Win RT / Windows 8 app

倾然丶 夕夏残阳落幕 提交于 2020-01-03 03:59:33

问题


On Windows Phone there's a marketplace review task.

Is there any way to implement the equivalent functionality in WinRT apps?

I realize that there's the "rate and review" button in the Charms bar, however, this is not what I need, as I want to integrate a button inside the app to launch the review UI.

It may seem trivial, however, this is one of the most important requirements!

This is not a duplicate of is there an equivalent of wp7's marketplacereviewtask for windows 8 / winrt / metro style? because the questioner was happy with the Charms bar method.

thanks


回答1:


This can be done in C# this way:

Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=PACKAGENAME"));

Where Package Name is to be replaced with yours, which can be found in Package.appxmanifest under the packaging tab.



来源:https://stackoverflow.com/questions/14293036/launching-the-windows-store-listing-from-win-rt-windows-8-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!