Windows Phone MessageBox implements scrolling!

Helpful quick and dirty debugging tip: I never noticed this before, but if you send a large amount of text to MessageBox.Show() on Windows Phone, it doesn’t just truncate it. It allows you to scroll through it all. Very cool. Very unlike the desktop message box. I was tinkering today with the web browser control…


Managing multiple web service calls with Rx

Lets say I have a phone app (or any app really) that needs to make several web service calls at once. For example, imagine the user multiselects three items on a page and then taps the “add favorite” button. I then need to make three calls to the “set favorite” service. I’ll do this asynchronously…


Give formatting its own line

I got bitten by this not once but twice on Sunday as I hurriedly worked on a new phone app. Can you spot the difference between the the following two lines? Uri uri = new Uri(string.Format("/View/DataView.xaml?collection={0}&id={1}", collection, currentItem.getID(), UriKind.Relative)); Uri uri = new Uri(string.Format("/View/DataView.xaml?collection={0}&id={1}", collection, currentItem.getID()), UriKind.Relative); Typically I like to put any String.Format() call…


Using Rx? Subscribe to exceptions!

I have an app in the Windows Phone Marketplace which suddenly saw a spike in Little Watson email reports back to me last weekend. Each one looked like the last so I responded back to each user (always keep the user’s happy!) and went to investigate. The service it was talking to suddenly changed its…


Populating Windows Phone view models with Rx

I’ve gotten rather fond of using the Reactive Extensions for populating my data from the web in my Windows Phone applications. They provide a lot of flexibility and the code stays in a readable form. To demonstrate in a traditional MVVM model, let’s drop some movie information from Netflix onto our Windows Phone screen. First…


Mango goodness for devs today!

From the App Hub’s news comes information on how to update your Windows Phone to Mango today in order to test those apps you have been building with on real hardware. The Windows Phone Developer team is pleased to announce the immediate availability of Windows Phone OS 7.1 codenamed Mango for registered Windows Phone developers….


Pivot Title Templates

By default the Pivot Control on Windows Phone 7 simply displays a TextBlock as the title of the control. But what if you want to modify the title’s control template? Creating a default Windows Phone Pivot Application we see that the MainPage.xaml contains this bit of xaml 1 <controls:Pivot Title="MY APPLICATION"> 2 <!–Pivot item one–>…


Don’t ForkJoin your Events

I’ve been using Reactive Extensions for .NET to attempt to wait until multiple async calls to load data are completed in order to perform some actions on all the data at once. Dev Tidbit of the Day Do not use ForkJoin with Event based observables. If you create an IObservable from a .NET event, the…


Custom page transitions in WP7

The Silverlight for Windows Phone Toolkit provides the mechanism for creating animated page transitions in your Windows Phone 7 applications. It also provides a few standard transitions that match the look and feel of the built in apps such as pages sliding in, rotating out, etc. But what if I want to create a new…