Denn
Denn

Reputation: 113

I want open marketplace with specific app after clicking button

I want open marketplace with specific app after clicking button, and I can't find any solution for that. Any help?

Upvotes: 1

Views: 70

Answers (1)

Johan Paul
Johan Paul

Reputation: 2456

Try using the MarketDetailTask class in your button's "Tap" event handler. Just insert the ID of the app that you want to display below.

Here's an example how:

using Microsoft.Phone.Tasks;

MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentIdentifier = "app-id-goes-here";
marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
marketplaceDetailTask.Show();

Upvotes: 2

Related Questions