Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

How to use the Marketplace Hub task for Windows Phone 8

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Use the Marketplace Hub task to launch the Store or Marketplace. You can specify the content type to launch the Hub to a particular type of content, such as music or apps.

By using Launchers, you help provide a consistent user experience throughout the Windows Phone platform. For more information, see Launchers and Choosers for Windows Phone 8.

To use the Marketplace Hub task

  1. Add the following statement to your code.

    using Microsoft.Phone.Tasks;
    
  2. Add the following code to your app wherever you need it, such as in a button click event. To test this procedure, you can put the code in the page constructor. This is the code to launch the task.

    MarketplaceHubTask marketplaceHubTask = new MarketplaceHubTask();
    
    marketplaceHubTask.ContentType = MarketplaceContentType.Music;
    
    marketplaceHubTask.Show();
    

Show: