In wibdow1.xaml I add the ResourceDictionary1.xaml to the wibdow.resources.
I define a simple style without x:key for button in ResourceDictionary1.xaml .
And all buttons in window1.xaml get the style of button defined in Dictionary1.xaml.
Till now there is no problem.
I have another project, whose output type is dll file (class library) Resources.dll.
In this project I have ResourceDictionary2.xaml.
If in wibdow1.xaml I add the ResourceDictionary2.xaml to the wibdow.resources instead of ResourceDictionary1.xaml, and add the reference of Resources.dll in
View Complete Post