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
From the course: Microsoft XAML: 3 Type Converters and Resources
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Types of resources6m 31s
-
XAML resources and ResourceDictionaries4m 4s
-
(Locked)
The Resources property2m 44s
-
(Locked)
Use resource with the StaticResource markup extensions3m 46s
-
(Locked)
Styles in resources1m 23s
-
(Locked)
Colors in resources1m 29s
-
(Locked)
Data and templates in resources3m 3s
-
(Locked)
Explore the resource hierarchy2m 51s
-
(Locked)
Create Resources with the Properties window5m 54s
-
(Locked)
A quick look at merged resources5m 24s
-
(Locked)
Use the Pack URI to locate resource files2m 39s
-
(Locked)
Load a resource file for dynamic application UI2m 6s
-
(Locked)
-