From the course: Microsoft XAML: 3 Type Converters and Resources

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Load a resource file for dynamic application UI

Load a resource file for dynamic application UI

From the course: Microsoft XAML: 3 Type Converters and Resources

Start my 1-month free trial

Load a resource file for dynamic application UI

- [Instructor] I'd like to show you a technique that allows me to take my resource dictionary files, make them stand alone files and deploy them with my application. That allows me to update my resources without having to recompile the executable. Here's how it works. I take one of my resource files, this one's in the merge folder, it's called brushresources.zaml and I set the build action to content. Normally they're set to page. Mark this one as content and I say to copy it to the output directory. I build my project, in this case it's a release build, open the folder in File Explorer and then look in the release folder. And there's my executable and because I mark that research dictionary file as content the compiler, the Microsoft build engine created this merge folder and put that zaml file in the folder. Now back in Visual Studio I use this, I make it a merge dictionary and the difference here is I now have to use the site of origin level for the syntax, other than that it's the…

Contents