Apress Access

Beginning Windows Phone 7 Development

2nd Edition

By Henry Lee , Eugene Chuvyrov

  • eBook Price: $27.99
Buy eBook Buy Print Book
Starting with the basics, you'll master everything you need to produce well-designed Windows Phone 7 applications quickly and easily.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-3596-5
  • 512 Pages
  • User Level: Beginner to Intermediate
  • Publication Date: July 17, 2011
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Windows 10 for the Internet of Things
  • DevOps on the Microsoft Stack
  • Appium Recipes
Full Description

Microsoft’s Windows Phone 7 handsets have injected a new vibrancy into the smartphone marketplace and provided bold new opportunities for the Microsoft development community.

Now in its second edition, Beginning Windows Phone 7 Development has been written to help you identify those opportunities and to learn the skills you’ll need to harness them. It covers the very latest developments in the field, including the extended APIs offered in Microsoft’s automatic platform update, so you'll have timely, accurate information at your fingertips.

Beginning Windows Phone 7 Development, Second Edition starts with the basics, walking you through the process of downloading and setting up the right development tools, including Visual Studio, Expression Blend, Silverlight SDK, and Windows Phone SDK. It then takes you step-by-step though the development process as you build and deploy a working application, complete with a sophisticated user interface. Finally, you'll receive step-by-step instructions on selling your applications through the Windows Phone Marketplace.

What you’ll learn

  • How to create effective networked applications
  • How to leverage your phone’s GPS capabilities from within your application
  • How to interact with the phone’s built-in functionalities (camera, contacts, maps, accelerometer, video and web browser to name but a few)
  • How to construct highly graphical and responsive user interfaces quickly and easily using these features
  • How to package and distribute your applications for both personal distribution and commercial sale via the Windows Phone Marketplace

Who this book is for

This book is for anyone interested in developing applications for the Windows Phone 7. You might be an existing .NET developer looking for a new creative angle, or perhaps an iPhone or Android developer looking for a new opportunity.

If you have an understanding of basic .NET coding practices, then this book is for you.

Table of Contents

Table of Contents

  1. Introducing Windows Phone 7 and the Windows Phone Platform
  2. Building Windows Phone 7 Applications
  3. Using Cloud Services As Data Stores
  4. Catching and Debugging Errors
  5. Packaging, Publishing, and Managing Applications
  6. Working with the Accelerometer
  7. Application Bar
  8. WebBrowser Control
  9. Working with Controls and Themes
  10. Integrating Applications with the Windows Phone OS
  11. Creating Trial Applications
  12. Internationalization
  13. Isolated Storage
  14. Using Location Services
  15. Media
  16. Working with the Camera and Photos
  17. Push Notifications
  18. Reactive Extensions for .NET
  19. Security
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page 25:

After adding the .png to the project, I was not able to deploy the app. Had to change the build action from Resource to Content, and had to change the copy to output directory from Do Not Copy to Copy if Newer. Not sure why Visual Studio is behaving this way for me. It may be worth mentioning to readers since the error message isn't very helpful...

Error 1 Icon file HelloWorldIcon.png not found. Make sure that the file is present in the application.

On page 38:

Signing up for SQL Azure

This is out of date with what I'm seeing. And you talk of Step 1 in point 3 and 4 but there has been no identified Step 1. I didn't have to create a project on registering. As a result I'm not sure what I should do now. In the new portal do I create a server then a database?

On page 62:

orderby eachNote.Description ascending
select new NoteDto
NoteId = eachNote.NoteId,
Description = eachNote.Description,
NoteText = eachNote.NoteText,

The , after NoteText should not be there

On page 65:

For the 2 user controls, I see the xaml in the book, but not the .cs code. The project won't compile unless you add it. Had to load the code from the download to figure out what was missing (button click code).

On page 220:

Step 6 thru 9 says to add Debug.WriteLine("") statements to the App.xaml.cs file for the application life cycle events but a step that skipped was to put the using System.Diagnostics; at the top of the App.xaml.cs file. It is mentioned for MainPage.xaml.cs. In fact it says to add it to top of MainPage.xaml and shouldn't it be MainPage.xaml.cs.

On page 379:
Step 9 includes a method BindToShell() which has a try/catch handler. The catch has the exception but no variable but the exception code refers to the exception in using the Debug.WriteLine by using ex.ToString().

On page 426:
Somewhere in the steps, the following code is missing for a class variable.

svcWeather.WeatherForecastSoapClient weatherClient = new svcWeather.WeatherForecastSoapClient();

Steps 3 and 4 refer to it so it must be created in steps 1 or 2.

On page 433:

Step 4 says to declare module level variable:


But should the EventArgs be prefixed with svcWeather. like


Or import the namespace svcWeather


    1. User Experience Innovation


      View Book

    2. Windows Mobile Game Development


      View Book