Looks like you can do it! Yipee!

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

Picture of me smiling.

Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.

RSS Github Medium