In my previous article I’ve shown a new way, how can we use Json file as a data source for design-time data in new Windows 8.1 apps. Luckily, it’s possible to use similar approach in Windows Phone 8 apps as well!
When designing Windows 8.1 apps it’s essential to have design-time data available in some way, so we can actually see how the app will look like.
Iris Class described in this great article, that there are several ways, how to achieve this:
- Using XAML – Design time data source set in XAML
- Using a ‘standalone’ data source class – Design time data source set in XAML
- Conditional data source – Design time data source set in code
But what I missed in this aticle is probably the most interesting way, how to use design-time data in Windows 8 apps – using external Json files. Here’s a short guide, how to do it:
Just today I’ve published one of my first Windows Phone application Bugemos as Open Source on GitHub.
The app, that I created and published to Windows Phone Store back in late 2011, is just a simple RSS reader displaying latest comic strips from the web http://www.bugemos.com. The reason I’m publishing it as Open Source is that I think it might give a helpful insight to starting WP developers and to the community as well. Note the published source code is not the exact one, that was used in the currently published app. The app was updated from WP7.5 to WP8 and also instead of original AsyncCTP it now uses current Microsoft.Bcl.Async NuGet package.
So let’s see, how is the application designed and what it does.