After explaining what I’m going to do in my post of last week, let’s go on with some “real” work on the product this time.
The porting of this vocabulary trainer will be my first Metro style app. Therefore I need to get used to developing for Metro first.
As a starting point I’ve used an app sample code I got at the Microsoft App Excellence Lab. But while trying to run this example project with the most recent version of Visual Studio on the new Intel Ultrabook equipped with Windows 8, a lot of exceptions exploded in my face:
After a short search in the internet I found a new version of the Metro demo apps. I extracted the files and executed the app with the Visual Studio debugger – but: again an exception, at least a different one!
It told me:
After a quick look on what they wanted to do at this code location, I realized what the problem was: they wanted to register the app for push notifications and this was currently not possible, because I was sitting in a nice, sunny garden that was obviously a little bit too far away from my Wi-Fi connection in the office.
I’m not sure if that’s the user experience Microsoft wants to achieve: crash if there is currently no internet connection.
Anyway, I’ll take care of that later on. Now I wanted to continue with analyzing this demo app and therefore I just commented this piece of code. After doing that the demo app started without problems:
Afterwards I just needed to make some adjustments to the UI that the flag icons are displayed correctly together with some info text on what the displayed lesson is about. And here’s the result:
As a next step I need to add some functionality to that: add lessons, edit the dictionary of a lesson and delete a lesson again. In preparation for that I made the List View items selectable and added some buttons to the App Bar (I found a good tutorial for that):
There is much work left, but I think I’m on a good way.
So stay tuned for more in my next post on the following Monday and thanks for reading!
This post is also available in Deutsch.