What's in the project?
A project for sharing XAML based resources forThe Design Templates for WP7
project is a set of design templates created entirely in XAML using Expression Blend 4. The templates are based on the
UI Design and Interaction Guide for Windows Phone 7.
What can I do with them?
With these templates you can easily create common Windows Phone UI layouts by simply copying and pasting the desired page. We’ve taken care of the margins, styling, and some controls that may not be available in the platform, so you can
focus on the user experience of your application.
Let's get started!
**Please make sure to install the Silverlight for Windows Phone Toolkit (http://silverlight.codeplex.com/releases/view/52297) in order to run the project.
With Expression Blend, open the project and the WP7 Design Templates.xaml
and MainPage.xaml pages should be opened by default. The WP7 Design Templates.xaml page
displays all of the available templates in one page.
WP7 Design Templates.xaml page and MainPage.xaml
By running the project (F5), you can browse through all of the available templates via the Windows Phone 7 Emulator.
Creating a New Project
The following is a walkthrough example for creating a new Windows Phone Pivot Application and using one of the Design Templates.
1. Open a new instance of Expression Blend 4 and create a Windows Phone Pivot Application
2. Delete the default items in the PivotItem (highlighted below)
3. In the Design Templates for WP7 project, select the desired page layout to copy, in this case the push button, either in the Pages folder (Projects tab) or in the
WP7 Design Templates.xaml page
4. Copy the button_push PivotItem ScrollViewer in the Object Tree (Objects and Timeline tab)
5. Return to your Windows Phone Pivot Application project and paste the ScrollViewer into your PivotItem
6. That’s it. Some templates will contain custom controls (i.e. "MultiLineItem") which need to be added to your new project before pasting it, or else you will receive an error message. These custom controls are found in the Controls
folder in the Projects tab and can be copied and pasted anywhere in your new project’s Solution.
Creating a data bound ListView with Sample Data
One of the most common navigation pieces of UI are ListViews. The next walkthrough demonstartes how to create a Windows Phone Application with a ListView template using Sample Data.
1. In the Design Templates for WP7 project, browse to the desired ListView layout to copy. In this example let's take a look at the
large icon layout. Note how my data sample will need an image and 2 text strings
2. Now that you have decided which layout to use, create a new Windows Phone Application in a new instance of Blend
3. In the Data pane, start creating your new Sample Data by clicking the "Create sample data" button and choosing "New Sample Data..."
4. Create one image and two text strings (to add a new item, click the "+" icon). For the primary text, set the max word count to 4, max word length to 6 and Subtext max word count to 6, max word length to 7
We hope you will find these useful and your feedback is always welcome. Enjoy!