Async & exceptions in C#

This quick post is motivated by a question on StackOverflow. Basically it is a simple console program you can run to see how exceptions are handled in C# async methods. Common wisdom is “don’t have async void methods; always return a Task” but that simple signature change is neither necessary nor sufficient to handle exceptions…


New "Missing Platform APIs" UserVoice site for Windows Store development

Hopefully you are familiar with the existing WPDev UserVoice site, where you can provide suggestions (or vote on others’ suggestions) for developer features to add to Windows. Note that “WP” now stands for “Windows Platform” instead of “Windows Phone,” and it is intended to encompass all flavours of Windows. We’ve just added an additional sub-site…


Updated LayoutRules Code

I updated the LayoutRules sample attached to the //build/ post I made the other day. This version is much more comprehensive and easier to use. The sample usage is slightly more realistic, as well. At its core, the sample exposes a LayoutableUserControl and a LayoutablePage that let you specify a set of layout rules that…


Optimum Emulator Sizes for Windows Phone 8.1

[4/4 changed typo: 1080p -> 720p] As I mentioned in my //Build talk, the emulator is not a good place to perform visual verification of assets because the display characteristics of your monitor are highly unlikely to match those of any physical devices. But it is an excellent tool for verifying the layout of your…


//Build talk "From 4 to 40 inches" (with sample LayoutRules code)

[Update 4/6/2014: I uploaded a newer and better sample; see the end of the post for a link] Thanks to everyone who made it to my talk, which is now available online (so if you didn’t make it, you can watch it now!). Also, thanks to everyone who has provided feedback so far! If you…