我想在我的xaml页面添加一个按钮,该按钮将导航到我在商店应用程序中的商店,例如:
private void hotGame_Click(object sender, RoutedEventArgs e)
{
// code go here
}
,我的商店链接看起来像这样
http://www.windowsphone.com/en-US/store/publishers?publisherId=GameXP%2BStudio&appId=a18e8dec-e69b-414d-9cb5-80c5a264d8eb
我只是不知道WP8是否可以导航到另一个应用程序(在这种情况下是商店应用程序)?
答案 0 :(得分:0)
您只需调用WebBrowserTask
..
WebBrowserTask webBrowserTask = new WebBrowserTask();
webBrowserTask.Uri = new Uri("http://www.windowsphone.com/en-US/store/publishers?publisherId=GameXP%2BStudio&appId=a18e8dec-e69b-414d-9cb5-80c5a264d8eb
", UriKind.Absolute);
webBrowserTask.Show();
或MarketPlaceDetailsTask
..
MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentIdentifier = "a18e8dec-e69b-414d-9cb5-80c5a264d8eb";
marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
marketplaceDetailTask.Show();