Launching the Marketplace App with the MarketplaceHubTask
The Marketplace hub task is used to launch the built-in Marketplace app.
The marketplace category can be specified using the ContentType
property of the MarketplaceHubTask
. Set the ContentType
property to a value from the MarketplaceContentType
enumeration to launch the hub to a particular type of content, as shown in the following excerpt:
MarketplaceHubTask task = new MarketplaceHubTask { ContentType = MarketplaceContentType.Music };task.Show();
ContentType
allows you to specify one of two categories: Music or Applications.
Note
The only allowed value for the ContentType
property is MarketplaceContentType.Applications ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.