WP7 Development Tip of the Day: Windows Phone Application and Windows Phone Databound Application

by brad 22. October 2010 06:00

When you install the Windows Phone Developer tools, five project templates for phone development will be installed under the “Silverlight for Windows Phone” category.  Today’s tip focuses on the first two of these templates: Windows Phone Application and Windows Phone Databound Application.

CropperCapture[2]

Windows Phone Application

CropperCapture[3]

Windows Phone Application is the vanilla template and will create a blank project for you with one blank page called “MainPage.xaml”.  You’ll have your application icon, background image, and splash screen image all created in the root of the project.  If you are looking for a do-it-yourself experience or want to start from scratch, this is the template for you.

Windows Phone Databound Application

CropperCapture[4]

The Windows Phone Databound Application template creates a project with a model-view-viewmodel (MVVM) app pretty much built for you, although it’s very simple and built with dummy data.  This template is a great example of data-binding, sample data, the MVVM pattern, and navigation.  Even if you never start a project from this template, it’s worth looking at as a reference.

You’ll get two pages with the template: MainPage.xaml and DetailsPage.xaml, each with their own view model. The main page is databound to both sample data (for design time) and faked-up data (for run time).  The sample data is included and can be edited through a UI with Expression Blend or manually with Visual Studio.

The two pages are pre-wired for navigation.  The main page navigates to the details page when an item is selected and the details page kicks off a custom animation before navigating back to the main page when the hardware back button is pressed.

Stay tuned for coverage of the remaining three templates.

Other Resources

More Tips

Tags:

WP7 Tip of the Day | Windows Phone

Comments

10/26/2010 3:37:11 PM #

trackback

WP7 Development Tip of the Day: Windows Phone Panorama Application

WP7 Development Tip of the Day: Windows Phone Panorama Application

code badger

10/29/2010 10:59:40 PM #

pingback

Pingback from topsy.com

Twitter Trackbacks for
        
        WP7 Development Tip of the Day: Windows Phone Application and Windows Phone Databound Application
        [codebadger.com]
        on Topsy.com

topsy.com

Comments are closed

About Brad

Brad Tutterow lives in Illinois and works in Missouri. He has 12 years of experience developing web sites and Windows applications using a variety of technologies and is most excited currently about Silverlight, Windows Phone 7, Halo Reach, and Visual Studio 2010.