Looks like you can do it! Yipee!

Paul Kinlan

I was looking around the Internet to see if anyone has automatically loaded a resource file so that you can skin an XAML app.

It turns out that it has been done and is quite easy.

http://www.dave5.com/blog/Trackback.aspx?guid=47778bf9-abaf-46a9-aeee-d37ae2658fbe shows a simple method (I think based on the link below). Simply it loads a resource and then assigns it to the application.

http://blogs.msdn.com/mitchw/articles/68541.aspx: shows a more complete example of how to load a “Style” resource at runtime. In the styles you can have new visual trees and the like that you would have in any application.

Some code to load XAML at runtime can be found

Paul Kinlan

Trying to make the web and developers better.

RSS Github Medium