Book Image

Windows Phone 7 Silverlight Cookbook

By : Robb Schiefer Jr., Jonathan Marbutt, Robb Schiefer
Book Image

Windows Phone 7 Silverlight Cookbook

By: Robb Schiefer Jr., 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
About the Authors
About the Reviewers


Throughout the two previous chapters, we learned how to lay out our applications and add some simple animations to them. We have added some simple interactivity using both events and behaviors. Events are a classic way of adding interactivity, and if you have any background in WinForms development, then you will be used to this type of development. But with Silverlight, you will find that behaviors tend to lend themselves to an easier way of doing things by allowing you to define a majority of things directly in the XAML.

Essentially, behaviors are a way to attach an action to an event of a control without having to write code in your code behind. This is great for assigning events like NavigateToPage or PlaySound, which can be a few lines of code in your code behind, when you can just drag-and-drop the behavior onto the design surface and have a much richer editing experience.