Beginning Windows Phone 7 Development - Lee_ Henry.pdf

(25731 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
879021104.005.png
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
879021104.006.png 879021104.007.png
Contents at a Glance
About the Authors ................................................................................................ xiii
About the Technical Reviewer ............................................................................. xiv
Acknowledgments ................................................................................................ xv
Introduction ......................................................................................................... xvi
Chapter 1: Introducing Windows Phone 7 and the Windows Phone Platform ........ 1
Chapter 2: Building Windows Phone 7 Applications............................................. 15
Chapter 3: Building Windows Phone 7 Applications Using Cloud Services As
Data Stores ............................................................................................................... 35
Chapter 4: Catching and Debugging Errors .......................................................... 95
Chapter 5: Packaging, Publishing, and Managing Applications ......................... 119
Chapter 6: Working with the Accelerometer ...................................................... 139
Chapter 7: Application Bar.................................................................................. 159
Chapter 8: WebBrowser Control ......................................................................... 179
Chapter 10: Integrating Applications with the Windows Phone OS .................... 213
Chapter 11: Creating Trial Applications.............................................................. 239
Chapter 12: Internationalization ......................................................................... 261
Chapter 13: Isolated Storage .............................................................................. 279
Chapter 14: Using Location Services .................................................................. 297
Chapter 15: Media .............................................................................................. 325
Chapter 16: Working with the Camera and Photos............................................ 347
Chapter 17: Push Notifications ........................................................................... 367
Chapter 18: Reactive Extensions for .NET........................................................... 405
Chapter 19: Security ........................................................................................... 439
Index ................................................................................................................... 471
iv
879021104.008.png 879021104.001.png 879021104.002.png 879021104.003.png
 
Introduction
This is the second edition of this book. We wanted to improve upon the first edition and become the
market leader in providing practical knowledge on the fast-coming, latest-and-greatest technology of
Windows Phone.
While this second edition was being written, Microsoft and Nokia formally announced their
partnership and signed mutual agreement to seal their commitment. It is expected that this partnership
between Microsoft and Nokia will bring Windows Phone 7 into the major player arena. We hope that this
book will provide developers with the practical knowledge that we gained by developing real world
applications; we also hope it will inspire developers to seek growing markets with Windows Phone.
Who This Book Is For
This book assumes that you have basic C# and .NET knowledge. This book will provide you with basic
fundamentals and skills that you need to be successful in developing a Windows Phone applications.
You don’t need previous experience in developing a mobile application—the only thing you need is a
desire to learn new technology.
What You Need to Use This Book
In order to write Windows Phone applications and to test out the examples in this book, you’ll need to
download the tools listed here. All of these are available at no charge from Microsoft. You’ll find
additional information on how to install and use these tools in Part 1 of this book.
Windows Phone 7 UI Design and Interface Guide at
Windows Phone 7 Marketplace Certification Requirements at
Microsoft SQL 2008 R2 Express at www.microsoft.com/express/Database/
xx
879021104.004.png
INTRODUCTION
Windows Azure Platform Training Kit September —for the latest update, please
check at
How This Book Is Organized
The book contains 19 chapters broken into two major parts. In Part 1, we will walk you through the
development life cycle of the application. You will go from coding the simplest possible “Hello World”–
style Windows Phone 7 application to building a full-blown, modern n-tier application that uses both
the Windows Phone development platform and the unique cloud services that support it. The section
concludes with step-by-step instructions on how to gain certification from Microsoft and offer an
application to the public through the Windows Phone Marketplace.
In Part 2, you will learn how to use specific features of Windows Phone devices in your applications,
including the accelerometer, location service, application bar, reactive extensions, application hub
integration, application life cycle events, isolated storage, Silverlight, XAML, skinning controls, web
browser controls, media elements, photos, push notifications, internalization, and security. While each
of its chapters is a tutorial, you can also use Part 2 as a reference. Each chapter focuses on a single phone
feature and provides step-by-step instructions on how to incorporate it into your application.
Where to Find Sources for the Examples
The source code of all of the examples is available at www.apress.com/ an d wp7apress.codeplex.com .
Send Us Your Comments
We value your input. We’d like to know what you like about the book and what you don’t like about it.
When providing feedback, please make sure you include the title of the book in your note to us.
We’ve tried to make this book as error-free as possible. However, mistakes happen. If you find any
type of error in this book, whether it is a typo or an erroneous command, please let us know about it.
Visit the book’s web site at www.apress.com/9781430235965 an d click the Errata tab . Your information
will be validated and posted on the errata page to be used in subsequent editions of the book.
Contacting the Authors
You can contact us directly at the following e-mail addresses:
Eugene Chuvyrov: echuvyrov@msn.com
xxi
Zgłoś jeśli naruszono regulamin