Sample Panorama Application

The sample for this section makes use of the WCF Bookshop Service, which was detailed in Chapter 3, “Understanding the Application Execution Model.” This service is used to retrieve a list of products and present them within a Panorama.

The code is located in the files PanoramaView.xaml, PanoramaView.xaml.cs, and PanoramaViewModel.cs in the downloadable sample code.

The viewmodel, for this example, exposes a collection of Product objects, which are retrieved from the Bookshop Service when the viewmodel is instantiated, and a single featured product, which is the first member of the collection (see Listing 11.8).

LISTING 11.8. PanoramaViewModel Class

public class PanoramaViewModel :

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.