Pro Windows Phone App Development
Copyright 2011 by Rob Cameron
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher's location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.
ISBN-13 (pbk): 978-1-4302-3936-9
ISBN-13 (electronic): 978-1-4302-3937-6
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
President and Publisher: Paul Manning
Lead Editor: Jonathan Hassell
Development Editor: Matthew Moodie
Technical Reviewer: Robert Garrett
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Morgan Ertel, Jonathan Gennick,
Jonathan Hassell, Robert Hutchinson, Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing, Matt Wade, Tom Welsh
Coordinating Editors: Debra Kelly and Jennifer L. Blackwell
Copy Editor: Jim Compton
Compositor: Apress Production (Christine Ricketts)
Indexer: SPI Global
Artist: SPI Global
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail .
For information on translations, please e-mail .
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk SaleseBook Licensing web page at www.apress.com/bulk-sales
.
Any source code or other supplementary materials referenced by the author in this text is available to readers at www.apress.com
. For detailed information about how to locate your book's source code, go to www.apress.com/source-code/
.
To my beautiful wife, Ally, whose love and patience is unending,
and to my lovely daughters Amanda and Anna, who make me so proud every day.
Rob
Contents at a Glance
Contents
About the Author
Rob Cameron Employed by Microsoft since 2001, Rob Cameron is an Architect Evangelist with Microsoft Corporation based out of Atlanta, Georgia. As part of Microsoft's Developer & Platform Evangelism team, Rob focuses on development tools and technologies targeting mobile devices, gaming, and embedded devices for telecommunications, cable, and media & entertainment companies. Rob has also worked on six books for Apress including authoring the latest Pro Windows Phone App Development. He has a master's degree in information technology management and a bachelor's degree in computer science. Visit Rob's blog at http://blogs.msdn.com/RobCamer.
About the Technical Reviewer
Rob Garrett has worked with SharePoint since the early beta version of MOSS 2007 and has leveraged his talents for SharePoint architecture and design with Portal Solutionsa SharePoint consultant company in Rockville, MD. Rob has extensive background in .NET technologies and has developed software for Microsoft Frameworks since the early days of C++ and MFC. In pursuit of his career dreams, Rob left his birthplace in England for a journey to the United States on Thanksgiving Day 1999. Upon arrival, he enjoyed his first American meal from a gas station.
Acknowledgments
I would like to acknowledge the incredible support provided by the Apress team who patiently waited as I struggled to balance all the demands in my life the past year. Jonathan Hassell has been there with me through all of my books with Apress, and I sincerely appreciate his support. Debra Kelly has been a trooper prodding me along to keep this book on track with the help of Jennifer Blackwell through the final push.
Introduction
Authoring a book on mobile development with a title that starts with Pro is a daunting task. Put in too much introductory material, and you lose the knowledgeable developer looking to take his application to the next level. Breeze through key concepts, and the cross-platform professional mobile developer may struggle learning how to work with targeting a relatively new platform in Windows Phone.
Another challenge is culling down what to cover between Silverlight and the XNA Framework. Both are fabulous and interesting technologies so I strived to cover both in a single text, though this book is more geared toward Silverlight developers who are interesting in learning about the XNA Framework as well.
However, with the combination of Silverlight and XNA Framework rendering available in Windows Phone 7.5 and the Windows Phone OS 7.1 SDK, understanding XNA Framework development becomes even more relevant to Silverlight developers, and vice versa. Consider the airlines demo Microsoft showed off at MIX 11, where you can navigate a 3D rendering of the airplane to pick your seat, and you can see the amazing possibilities available with Shared Graphics Rendering.
This book provides a comprehensive overview of XAML and Silverlight since it is a critical aspect of Windows Phone development. It also focuses on many of the more challenging topics such as correctly architecting Silverlight for Windows Phone applications using the Model-View-ViewModel architecture as well as working with services, encryption, and gestures.