How to correctly handle application deactivation and reactivation

Much has been written about tombstoning and how important it is that your application be able to save and restore state once it goes into the background. This is all good. One of the finer points of the Windows Phone application model that has received less attention is the case where your application moves into…

4

That memory thing I promised you

Today Jeff Wilcox, David Anson, and I did a Channel 9 live session with Dan Fernandez at the PDC on Microsoft campus. You can catch it almost exactly 55 minutes into the stream here (note to self: try to remember what team you work on – it’s the Application Platform team, not the Application Development…

2

Procrastination FTW – LazyListBox Should Improve your Scrolling Performance and Responsiveness

Introduction One of the things I’ve been working on for a while is a “smart” ListBox implementation that uses the new scrolling states and data virtualization features in Windows Phone 7 to help improve performance. Here’s a relatively common pattern we see with developers who are new to Silverlight (or just new to the phone):…

9

A couple of (late) links

Firstly, fellow WP7 PM Developer Dragos Manolescu is resurrecting his blog and posting about Windows Phone 7. His first WP7 post is a great introductory piece on using Location Services and Reactive LINQ on the phone (and if lambdas make your brain hurt, don’t say I didn’t warn you). Secondly, the RTM Windows Phone Tools…

0

Sample code from TechEd New Zealand talks

[Update September 9: Link to the recorded sessions] [Update September 2: Updated the ZIP file to comment-out dependency on not-yet-shipped Map control :-)]   Attached to this post is a ZIP file with three projects in it: Part1Demo, which is the demo app for WPH304 (video should be available soon at http://www.msteched.com/2010/NewZealand/WPH304) Part2Demo, which is…

0

Redirecting an initial navigation

One more post on the subject of keeping screens out of the backstack. A common scenario we see is a variation of the login screen scenario I mentioned the other week. In this case, the first page the user is supposed to see depends on some state saved in by the application (maybe a user…

16

Introducing the concept of “Places”

TechEd Australia is all wrapped up, and I wanted to let everyone else know about one of the new concepts we’re introducing around application structure. As we’ve previously discussed, Windows Phone 7 applications are composed of pages that exist on a back stack and can be accessed by the user with the hardware Back key….

9

Crazy Coincidental Coding, Batman!

My Silverlight cohort and all-round good guy Shawn Oster posted on exactly the same topic that I did at almost exactly the same time… and we didn’t co-ordinate it at all! http://shawnoster.com/blog/post/Improving-ListBox-Performance-in-Silverlight-for-Windows-Phone-7-Data-Virtualization.aspx Creepy, huh? Shawn goes into more detail and calls out one of the key requirements for virtualization, which is that you must have…

1

Virtualizing Data in Windows Phone 7 Silverlight Applications

One of the cool features of lists in Silverlight is that they can “virtualize” the UI objects needed to render the list, reducing the amount of memory and CPU necessary to load large lists. For example, if you bind a ListBox to 1,000 items in Silverlight, it will only create ListBoxItems for the first few…

17

Homeward Bound…

Well, well, well. There I was sitting in my office when I get an e-mail asking if I wanted to present Windows Phone 7 developer content at Tech.Ed Australia and Tech.Ed New Zealand… what did they think I’d say – “No”?!? Suffice it to say I’ll be at both conferences, and spending some time in…

1