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

Using ViewStateManager to create simple animations


As we have seen in the previous chapter, ViewStateManager allows us to create some simple animations. Now we want to take things a lot further by adding various animations to one control. We will be adding some simple animations to a list box to provide a much customized look and feel.

We will also begin to customize various levels of templates on a few controls to create something that doesn't even look remotely like the standard control.

Getting ready

Let's start by opening Expression Blend and creating a new Windows Phone Application. The other thing we want to go ahead and do is create some sample data for the project to simulate this application actually having some real world data in it. You can do this by navigating to the Data tab, clicking the first button with the plus sign, and then selecting New Sample Data. When it prompts you for the Data Source Name, simply set it to MySampleData:

Once you have created your sample data source...