Book Image

Windows Phone 7 Silverlight Cookbook

By : Jonathan Marbutt, Robb Schiefer
Book Image

Windows Phone 7 Silverlight Cookbook

By: Jonathan Marbutt, Robb Schiefer

Overview of this book

Silverlight has revolutionized development using Microsoft technologies. It is an excellent tool for mobile application development. The XAML-based markup and familiar C# code are the perfect combination for building apps efficiently and with minimum hassle.Packed full of recipes containing comprehensive instructions for the tasks required to build modern compelling smartphone apps using Silverlight.Starting with application design and architecture, you will quickly move on to more technical features and APIs you can implement to make your app stand out. You will use the Camera API to scan barcode, location services to pinpoint the user’s GPS coordinates and accelerometer to provide feedback based on movement of the phone. All of these features can be provided in a slick user interface through the power of Silverlight. Animations, behaviors and XAML provide all you need and more.
Table of Contents (18 chapters)
Windows Phone 7 Silverlight Cookbook
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

A case for MVVM


Before we get too deep into discussion about MVVM, let's first look at the need for MVVM and a little history to it. Traditionally in application development the lines of where logic for your application goes sometimes gets blurred. This blurring of lines causes applications to not optimize code re-usage that in turn leaves room for bugs and increases the maintenance of your application.

Separation of Concerns

The other case for MVVM is creating a true Separation of Concerns for parts of your application, with each part being completely independent from the other. It reminds me of my childhood; I always loved to have my dinner on a divided plate that would keep my peas away from my bread and my spaghetti sauce away from my peas and away from my dessert. Each part of MVVM is like a meal that isn't mixed together; while it is fine to mix your food, it does not allow you to enjoy each individual item. Architecting your application isn't that different; if you have been a programmer...