In last two post, we learnt about How to search in the WP7 Marketplace using the MarketplaceSearchTask? and How to Launch the WP7 Marketplace Hub using the MarketplaceHubTask? Today in this small post, we will learn how to launch the application details page.

If you searched application in Marketplace using the marketplace client, you would familiar about the application details page. The details page consists of information about the application including install & share button and reviews section. You might want to add that page in your application. Continue reading to learn about the API.

Like MarketplaceSearchTask and MarketplaceHubTask, there is another launchers API called MarketplaceDetailTask. MarketplaceDetailTask exposes a property called ContentIdentifier which takes the application GUID as parameter and opens up the application details page in the screen.

Here is the meta data of the MarketplaceDetailTask class:

Copy Code
class MarketplaceDetailTask
{
    public MarketplaceContentType ContentType { get; set; }
    public string ContentIdentifier { get; set; } // Set the application GUID
    public void Show();
}

Based on your requirement, set the ContentType to either Application or Music. As a short note, you need the application GUID to set as the ContentIdentifier to launch it.

Here is the sample code snippet:

Copy Code
 
var marketplaceDetailTask = new MarketplaceDetailTask
                                {
                                    ContentType = MarketplaceContentType.Applications,
                                    ContentIdentifier = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
                                };
 
marketplaceDetailTask.Show();
<!--CRLF-->

When you execute the above code snippet, you will see the application details page in your phone device for which you entered the ContentIdentifier. Just replace the exact value to continue.

How to Launch the WP7 Application Details Page using the MarketplaceDetailTask?

I hope that this small post was also helpful for you to understand the use of the API “MarketplaceDetailTask”. Stay tuned to my blog, facebook and twitter for many more articles, news and tips on Silverlight and Windows Phone 7.

Reference: http://www.kunal-chowdhury.com/
You may like to follow me on twitter @kunal2383 or may like the Facebook page of my blog http://www.facebook.com/blog.kunal2383.

License

相关文章:

  • 2021-05-23
  • 2021-12-29
  • 2022-12-23
  • 2022-01-09
  • 2021-06-29
  • 2022-02-03
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2022-01-05
  • 2021-07-03
  • 2021-08-07
  • 2021-11-07
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案