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

A quick look at merged resources

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

Start my 1-month free trial

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…

Contents