Book Image

Windows Phone 7.5 Data Cookbook

By : Ramesh Thalli
Book Image

Windows Phone 7.5 Data Cookbook

By: Ramesh Thalli

Overview of this book

Windows Phone 7.5 Mango contains support for apps written in Silverlight or XNA. These apps can store data on the device, and also load and manipulate data from "the cloud" and other web services.This Windows Phone 7.5 Data Cookbook has a range of recipes to help you apply data handling concepts. You will be able to apply the knowledge gained from these recipes to build your own apps effectively. This Windows Phone 7.5 Data Cookbook starts with data binding concepts at the UI layer and then shows different ways of saving data locally and externally in databases. The book ends with a look at the popular MVVM software design pattern. The recipes contained in this book will make you an expert in the areas of data access and storage.
Table of Contents (15 chapters)
Windows Phone 7.5 Data Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Updating the MVVM application


In the preceding recipe, we learned how to use the MVVM Light toolkit to make it easy for us to separate the Views from Models using ViewModel classes. In this recipe, we will learn how we can update the view without changing anything in the model side. This recipe demonstrates the MVVM's goal of maintainability by changing the MyTask View page.

Getting ready

For this demo, let's use the Phone 7 Toolkit published by Microsoft, which has some nice UI capabilities like AutoCompleteBox, ContextMenu, DateTimePickers, ListPicker, LongListSelector, ProgressBar, and so on. Download the latest version from the following link and install it:

http://silverlight.codeplex.com/releases

Upon completing the installation, open Visual Studio and select the Toolbox's General Tab. Right-click on and select the Choose Items menu. From the Windows Phone Components, select all the items from the Microsoft.Phone.Controls.Toolkit assembly and click on OK.

Once you are done, you should...