Developing for Modern Windows

Tips, tricks, and guides for developing on modern Windows platforms

Universal Apps

Get a Street Address from GPS Co-ordinates (WinRT 8.1 Universal)

When you use location services you usually need to convert between raw location data (GPS position) and a real-world street address. In this article I’ll show you how to do just that, and in a follow-up post I’ll do the… Continue Reading →

‘Object reference not set to an instance of an object’ Error in WinRT Data Binding

  My current project was plagued with the above error on every XAML page and control, and my design-time data binding had stopped working entirely. My DesignTimeData class seemed correct (at first glance), but the error was saying something in my… Continue Reading →

Async OnNavigatedTo in WinRT Universal Apps

By default, a page’s OnNavigatedTo() method page is not asynchronous, but you can add the async keyword: protected async override void OnNavigatedTo(NavigationEventArgs e) { navigationHelper.OnNavigatedTo(e); await DoSomethingAsync(); } Now you can start a network data download or read files from disk… Continue Reading →

Serializing Sub-Classes in XML

I recently came upon a problem when serializing a class to XML using my standard serializing technique. It wouldn’t serialize a list of Vehicle objects: List<Vehicle> vehiclesList { get; set; } This gave an error message like this:   Unfortunately… Continue Reading →