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.
A quick look at merged resources
From the course: Microsoft XAML: 3 Type Converters and Resources
A quick look at merged resources
- [Instructor] One of the locations that you can define your resources is in a separate resource dictionary file. For this example, I have those resource dictionary files in this Merged folder. Here is one called BrushResources.xaml. Inside this file, the root element is a ResourceDictionary element. So all of these brushes that I've instantiated in here are going to be added to this resource dictionary. This might be where I would keep my brushes that I use across different projects. And if I've got some standardized control templates, I might keep them in here, ControlResources.xaml, Here are my Styles and Templates for things like the Button and TextBlock. In the ImagesResources resource dictionary, I'm instantiating some bitmap images. And I'll use these for my logos throughout the application. For this demonstration, I'll work with the PrimaryBrush and the AccentBrush that are inside this resource dictionary. And I'll use those on some shapes I have over here in MainWindow.xaml…
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)
-