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.

Thanks!

Jan 11, 2010 at 12:04 AM

Here is the solution:

http://coreclr.wordpress.com/2009/10/29/multiple-resourcedictionarys-with-blend-support/

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

http://www.orbifold.net/default/?p=1754

Thanks!

Developer
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.