Here’s a recipe that brings together Windows Phone 7, asynchronous web calls, Caliburn Micro, and some other magical fairy dust to make your background data loading in WP7 easy, good looking, and fun!
In the MyTours application I’m developing, I wanted to show the user their location on a map, and have the map track along with their movement.
A few weeks back I posted a fairly hacky solution to have theme aware icon buttons (like the ones on the application bar). At the time, I knew there must be a better way. I’ve found it now.
It’s trivially simple to put an Image control onto a page in Windows Phone 7 and point it at a url. Handily, the Image control will also cache that URL, and not request it again for the life of your application. But what if you’re like me and really, really want to save data traffic?
If you download the set of standard Windows Phone 7 icons, you’ll notice there are two sets: one for dark backgrounds, and one for light backgrounds. The built-in application bar magically picks the right icon, but if we want to use these icons for our own buttons, we need to switch between them.