Free ebook: Programming Windows Phone 7 Series (DRAFT Preview)

Free ebook: Programming Windows Phone 7 Series (DRAFT Preview)

  • Comments 36

Do you recognize this man?


That’s Charles Petzold! Looking stylish with the cover of his free ebook on his tee shirt. It’s a draft preview of his upcoming book (to be published in the fall): Programming Windows Phone 7 Series. This preview ebook contains six chapters in three parts (153 pages total):

Part I   Getting Started

Chapter 1   Phone Hardware + Your Software

Chapter 2   Hello, Windows Phone

Part II   Silverlight

Chapter 3   Code and XAML

Chapter 4   Presentation and Layout

Part III   XNA

Chapter 5   Principles of Movement

Chapter 6   Textures and Sprites

Here’s a quick excerpt from the ebook:

Chapter 1
Phone Hardware + Your Software

Sometimes it becomes apparent that previous approaches to a problem haven’t quite worked the way you anticipated. Perhaps you just need to clear away the smoky residue of the past, take a deep breath, and try again with a new attitude and fresh ideas. In golf, it’s known as a “mulligan”; in schoolyard sports, it’s called a “do-over”; and in the computer industry, we say it’s a “reboot.”

A reboot is what Microsoft has initiated with its new approach to the mobile phone market. On February 15, 2010, at the Mobile World Congress in Barcelona, Microsoft CEO Steve Ballmer unveiled the Microsoft Windows Phone 7 Series and promised a product introduction in time for year-end holiday shopping. With its clean look, striking fonts, and new organizational paradigms, Windows Phone 7 Series not only represents a break with the Windows Mobile past but also differentiates itself from other smartphones currently in the market.

For programmers, the news from Barcelona was certainly intriguing but hardly illuminating. Exactly how do we write programs for this new Windows Phone 7 Series? Developers detected a few hints but no real facts. The really important stuff wouldn’t be disclosed until mid-March at MIX 2010 in Las Vegas.

Silverlight or XNA?

Intelligent speculation about the application platform for the Windows Phone 7 Series has gravitated around two possibilities: Silverlight and XNA.

Since about 2008, programmers have been impatiently awaiting the arrival of a mobile version of Silverlight. Silverlight, a spinoff of the client-based Windows Presentation Foundation (WPF), has already given Web programmers unprecedented power to develop sophisticated user interfaces with a mix of traditional controls, high-quality text, vector graphics, media, animation, and data binding that run on multiple platforms and browsers. Many programmers thought Silverlight would be an excellent platform for writing applications and utilities for smartphones.

XNA—the three letters stand for something like “XNA is Not an Acronym”—is Microsoft’s game platform supporting both 2D sprite-based and 3D graphics with a traditional game-loop architecture. Although XNA is mostly associated with writing games for the Xbox 360 console, developers can also target the PC itself, as well as Microsoft’s classy audio player, the Zune. The 2009 release of the Zune HD particularly seemed to suggest a mobile future built around the device’s revamped graphics and multitouch navigation. For many Zune HD users, the most disappointing feature of the device was its inability to make phone calls!
Either Silverlight or XNA would make good sense as the application platform for the Windows Phone 7 Series, but the decision from Microsoft is:


The Windows Phone 7 Series supports programs written for either Silverlight or XNA. And this we call “an embarrassment of riches.”

You can download the ebook in XPS format here. Here it is in PDF format. And the zipped code samples for this draft preview are here.

Charles is at MIX; say hello and ask him about programming for the Windows Phone. And enjoy, everybody!


WinPhone_v3 (2)

  • Thank you! Very interested in this technology and book!

  • You're welcome, Mark!  Check back for the ebook's code samples.

  • If I'm going to learn to program a Windows 7 Phone who better than the man who helped teach me to program Windows 3.0.  ;)


  • where should i submit errors and typos?

  • Joey, you can send them to me (devonm).

  • Very cool... Petzold's Progamming Windows 3.1 was THE bible for programming windows back in the day.

  • Thank you for this early look at Charles' book!

    I've just put a small post about the ebook here:

  • Hi Charles! Your book does seem quite informative and interesting. XNA and Silverlight is a fascinating technology.

    I primarily work on Android. Wonder how Windows 7 Phones will be like if you compare them with Droid or Nexus 1.

    What edge does Windows Mobile would offer that is not there in Android or iPhone.

  • Charles has no intention to write also a book on C#?

  • How can I download this preview e-book?

  • Thank you Charles!

    The circle is complete...I started out with your Windows 3.1, now your Windows 7, and everything else in between.  You're practically family! :)

  • How many month will it be before the Windows Phone application I write today will no longer be compatible?


  • Nice book, I'd like to see focused on Windows Phone 7 series specifics.  It's a great intro to XAML and XNA, I think the title is misleading.  

    If you need an editor for future XAML or WP7 books, I'm keen to help out!

  • Nice book, I'd like to see focused on Windows Phone 7 series specifics.  It's a great intro to XAML and XNA, I think the title is misleading.  

    If you need an editor for future XAML or WP7 books, I'm keen to help out!

Page 1 of 3 (36 items) 123
Leave a Comment
  • Please add 3 and 6 and type the answer here:
  • Post