July 2008
Intermediate to advanced
480 pages
11h 50m
English
The second page, shown in Figure 4-10, is pretty straightforward to lay out.
Start by creating the new page, Checkout.xaml. (Be sure to add a new Page, not a new Windows Form—Pages are used for WPF, and Windows Forms are used for .NET 2.x.)
Once again, let's start simple. You'll add the TextBlock for the header and a Grid to hold the radio buttons for the credit cards, all of which will be in a Viewbox so the user can resize the display.

Figure 4-9. Page 1 finished

Figure 4-10. Page 2
<Window x:Class="PhotoCooperative.Checkout"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Photo Cooperative: Checkout" Height="600" Width="800"
xmlns:sbts="clr-namespace:PhotoCooperative" > <Window.Resources> <LinearGradientBrush x:Key="WindowGradient" StartPoint="0,0.3" EndPoint="1,0"> <GradientStop Color="#B2B6CAFF" Offset="0" /> <GradientStop Color="#BFC3D5FF" Offset="0.1" /> <GradientStop Color="#E0E4F0FF" Offset="0.3" /> <GradientStop Color="#E6EAF5FF" Offset="0.5" /> <GradientStop Color="#CFD7E2FF" Offset="0.6" /> <GradientStop Color="#BFC5D3FF" Offset="0.8" /> <GradientStop Color="#C4CBD8FF" Offset="1" /> </LinearGradientBrush> <LinearGradientBrush x:Key="ButtonGradient" StartPoint="0,0" ...Read now
Unlock full access