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

Automating e-mails


In this section, we will briefly discuss the differences between Launchers and Choosers and then utilize the EmailAddressChooserTask and EmailComposeTask tasks in a phone application. The Late for Work application will allow users to choose their boss' or colleague's e-mail address and then send a canned e-mail which explains why he/she is late for work. Let's face it; we don't have the time to write an e-mail about why we are late when we are late.

Getting ready

Launchers and Choosers are only slightly different; Choosers return something and Launchers do not. Choosers allow you to, for example, select an e-mail address, picture, or phone number and return it. Launchers perform tasks which do not return any items, in general, such as opening the marketplace hub or launching a web browser. Launchers and Choosers share a similar API which allows developers to very simply interface with the phone's core functions.

In this application, we will use the EmailAddressChooserTask...