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

The basics of timelines


While ViewStateManager is an outstanding way to create simple transitions for controls based on the current state of the control, sometimes you actually need more traditional animation techniques. If you have ever created a Flash application, then this will be very similar to what you are used to.

In this example, we will create a simple animation that will demonstrate animating various properties including position and brush settings. We will just be creating a simple one that could represent a loading animation.

Getting ready

To get started we simply need to open Expression Blend and start a new Windows Phone application. This will be our foundation for animation.

How to do it...

Create a circle in each corner of the screen as follows:

We are now going to animate each circle to move from one corner to the other.

  1. 1. To begin, let's create a blank storyboard by clicking on the plus sign in the Objects and Timeline window. As you will notice, this layout isn't ideal for...