Following image repesent that I want to.

*dgCommon classes has a no problem.
I want to share a xaml resource in CommonStyles directory. in Project 1, I added that xamls as ‘add as link’ options in file open dialog window.
the following is a solution view of Project 1.

It loaded well in design time. Because a window which using these resources were showing properly state in design time.
But I can’t run Project 1 due to Compile error. A compiler said that ‘can’t foudn \commonstyles\button.xaml”.
the following code is a the way to I load these resource xaml files.
(in App.xaml)
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="CommonStyles\Button.xaml" />
...
</ResourceDictionary>
this tag worked properly in past time. (the time I locate a xaml file in specified folder, instead ‘add to link’)
I can’t believe that there is a no simple solution for this issue.
I hope it just caused by my lack of googlibility.
How can I accomplish it?
Add as linkdoesn’t work quite well for xaml files. Try using a Pack URI to reference the file in the common dll:More information on this issue here