Tombstoning made easy in Windows Phone MVVM

Tombstoning your application data in Windows Phone can be tricky when you are using the MVVM pattern. In order to save your data you have to do it between the NavigatedTo and NavigatedFrom events of the page. In your ViewModel you don’t have access to these events. So in order to do that you need […] Read More...

Patterns for sharing code in Windows Phone and Windows 8 Applications

Background With the latest batch of releases in Windows Phone 8 and Windows 8 Microsoft has been trying to close the gap between both development platforms. (The old “write once, run everywhere”-idea)Although both platforms are based on the same Windows 8 kernel, there certainly are quite a few differences. One key piece of interoperability between […] Read More...

Breaking dependencies to make your code testable

In my previous post I explained how you could use “Extract Interface” and “Subclass and override” as effective techniques for breaking dependencies and get existing code under test. In some situations there are other methods either more appropriate or easier to implement. Simplify Parameters When a method accepts a parameter that is difficult to construct […] Read More...

How to unit test and refactor legacy code?

When you first start writing unit tests, you probably already have quite a large working codebase. Now, how can you start writing tests for this code? Usually this code isn’t written with testing in mind and it’s probably very hard to test. Your team probably has a rule that says “if it works, don’t touch […] Read More...

Key qualities of a good unit test

In order for our unit tests to become effective we need to lay out some ground rules. What is a good unit test and what can we do to make sure we create tests that actually help us in our development efforts? Because it’s not always easy or possible to create the perfect solution from […] Read More...

Unit testing: How to start writing effective tests

Unit testing is widely accepted as a good development practice. Strangely enough it’s also widely ignored in a lot of companies. It seems that everyone agrees that it is a must and should be implemented in every development shop. In reality, however, you’ll notice that there are actually not a lot of companies that implement […] Read More...

Create Windows 8 RT/Metro Icons

I started developing my XBMC Remote for Windows 8 RT / Metro and I have come across a nice little feature in the API which I want to share. For Windows Phone, I had to create all the icons myself. Visual Studio 2012, creates a file called StandardStyles.xaml (in the folder “Common”) which contains a […] Read More...

New Update for XBMC Remote for Windows Phone 7

I’ve just released an update for the XBMC remote control for Windows Phone 7. This update brings the following improvements: Full support for Eden Support for Movie Sets Added actors in TV Shows and Movies More details for TV Shows and Movies Extra controls for screen resolution and scaling Performance improvements (both in UI and […] Read More...

New version of Skin Designer Toolkit

Hello all, I just created a new version of the Skin Designer Toolkit. I have fixed a few issues and updated to the latest version of Websitepanel. You can download it from http://wspskindesigner.codeplex.com/releases/view/86466 More info about the project you can find at http://www.kenneth-truyers.net/projects/websitepanel-skin-designer-toolkit/ If you have any questions or bug reports please use the codeplex […] Read More...

JavaScript: Private variables

The first thing you often hear when talking about JavaScript is often “JavaScript doesn’t have visibility modifiers, hence it doesn’t support private variables”. This is only valid for 50%, because JavaScript indeed doesn’t have visibility modifiers (public, private, friend) but it has closures and function scopes. With these tools we can make variables private. Let’s […] Read More...