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.
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?
The situation: you need to display nicely formatted HTML in your Windows Phone 7 application. You want the formatting of this HTML to match the system theme, and that formatting to respect the user’s theme selections.
So my first port of call was the class that has been mentioned a number of times for using JSON over WCF: our friend the DataContractJsonSerializer. However, if you ask the DataContractJsonSerializer to deserialize the JSON above into a nice
Dictionary<int, Person>, it fails.
With the Windows Phone Marketplace, user feedback and ratings are supremely important. One annoying bug can mean the difference between a 5-star rated, top-selling app, and a mediocre seller. Test Driven Development gives us a developers an assurance that our apps are internally consistent and perform properly, especially as we add new features and releases to existing applications.
I’m building a Windows Phone 7 application, and I have a need to show nicely formatted HTML from a dynamic source, but not a web server. I hacked around with Silverlight’s TextBlock with its Inlines property for a while, but the lack of anything other than a plain Run object leaves me short. I can’t easily render links and lists.