Chapter 4. Applying WPF: Building a Biz App

The previous chapter introduced various aspects of working with WPF. In this chapter you're going to build a larger desktop application that has two significant "pages": on the first page (shown in Figure 4-1), users will be able to choose among photographs, crop them, and then add prints and related items to the shopping cart; on the second page (shown in Figure 4-2), users will pay for the items in their carts using a credit card.

Page 1

Figure 4-1. Page 1

Page 2

Figure 4-2. Page 2

Breaking the Application into Pieces

This application clearly lends itself to being developed in a number of pieces. The first division is between the first page, in which the user adds items to the shopping cart, and the second page, in which the user pays for those items.

Page 1, in turn, can easily be divided into its component parts: the photo slider you developed in the last chapter, the central photo display, the shopping cart area, and the surrounding areas.

To begin, create a new WPF Application called PhotoCooperative. You will use this project as a container for the code you create and evaluate along the way.

Get Programming .NET 3.5 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.