Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Phone 7 Silverlight Cookbook

You're reading from   Windows Phone 7 Silverlight Cookbook All the recipes you need to start creating apps and making money.

Arrow left icon
Product type Paperback
Published in Aug 2011
Publisher Packt
ISBN-13 9781849691161
Length 304 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Jonathan Marbutt Jonathan Marbutt
Author Profile Icon Jonathan Marbutt
Jonathan Marbutt
Robb Schiefer Robb Schiefer
Author Profile Icon Robb Schiefer
Robb Schiefer
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Creating a simple model


Now that we have an understanding of why we need MVVM, let's start to dig into the implementation of how it actually works. In this first example, we will be creating a simple model, which for the most part really doesn't do a whole lot more than describe the data we want to present. In this case, we will be keeping track of venues for a band's concert tour. We will want to keep track of things such as the venue location, number of seats, date, opening act, and so on. We will carry this model through the next few examples to fill the data and allow you to simulate purchasing tickets. We will also create a model for the band information that will create the band name and their concert schedule.

Getting ready

To get started on this project, we will want to create a Windows Phone application in Silverlight for Windows Phone:

We will go ahead and name this project BandTour. Now let's go ahead and add a folder in the solution named Models which will contain our model for...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image