Multiple Resource Files

Jan 10, 2010 at 7:30 PM
Edited Jan 10, 2010 at 7:34 PM

Hi All!

I want to modify the Family.Show to have several images like King, Queen, Priest, Disciples, Murderers and Victim. Right now it only has two images - male and female.

For simplicity, I'm only using the Black Skin so I hard-coded the BlackResources.xaml.

What is the process of breaking the resources file into multiple resource files so that I have a resource file for each image like King.xaml, Queen.xaml, Priest.xaml, Disciples.xaml, etc?

My plan is to separate the male and female images into Male.xaml and Female.xaml. And then copy and paste into images like King.xaml and Queen.xaml. And then modify the image individually using MS Blend.


Jan 11, 2010 at 12:04 AM

Here is the solution:

Then I had a small issue that was fixed by this solution:


Jan 11, 2010 at 9:57 AM

I think you can also set the compile property of the page to resource in Visual Studio.  In any case, its useful to know because it without a solution editing in blend is difficult.