O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Marketplace App List Sample

The built-in Marketplace app presents apps in a flat list. This example groups a set of mock items using a LongListSelector.

The custom MarketplaceApp class defines an app as having a name, description, image, price, and marketplace category. The marketplace category and its price are used to group a list of randomly generated MarketplaceApp objects. First, the example briefly looks at the MarketplaceApp class and how to generate a list of MarketplaceApp objects; this will increase your understanding as you move further through the example.

MarketplaceApp defines an array of hard-coded categories and prices. The array of category names is called categories, and is defined as follows:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required