Thanks everyone for your help. I will be looking at XamlReader and the MSDN/GeeksWithBlogs links. I don't have much time right now so I will look at this in much more detail on the weekend.