【发布时间】:2017-08-09 12:19:42
【问题描述】:
我正在使用 C# 在 Xamarin Forms 上开发 Windows Phone 8 应用程序。
我需要在点击 DisplayAlert 后打开商店。
if (condition)
{
await DisplayAlert(title,body,button);
//link to store for upgrading the app version
}
但我陷入了困境,我无法对 displayalert 内的按钮进行“点击监听”,而且我不知道如何链接到它外面的商店(以一种残酷且不那么优雅的方式)
【问题讨论】:
-
await Windows.System.Launcher.LaunchUriAsync(new Uri(@"ms-windows-store://review/?ProductId=9wzdncrfj2wl"));输入您的产品 ID。不确定它是否有效,但我发现了这个......docs.microsoft.com/en-us/windows/uwp/launch-resume/… -
它有点用,但不管我放什么ID,它总是打开音乐应用程序(这很有趣,因为它清楚地写着商店)
标签: c# xamarin windows-phone-8 xamarin.forms windows-store-apps