How to import one ResourceDictionary into other, in WPF?
问题 Is it possible to add one resource dictionary into other one? Thanks for any help. 回答1: In Dictionary2.xaml define MergedDictionaries (right after the opening ResourceDictionary tag): <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Path/to/Dictionary1.xaml" /> </ResourceDictionary.MergedDictionaries> there's a catch: each time you merge dictionaries you effectively create a copy of the merged dictionary. And it's recursive - if you have Dict3.xaml and Dict4.xaml that both