Windows 8 ViewModel Property Code Snippet

Visual Studio provides a bunch of good code snippets for creating boilerplate code. For example if you type “prop” you get this in intellisense   You’ll see a few nice property snippets. prop – creates a basic automatic property propa – creates an attached property propdp – creates a dependency property propfull – creates a…

0

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…

0

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…

0

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…

1

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…

0