Try add the dll name to the source:
<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/dllName;component/Themes/DarkTheme.xaml"/> </ResourceDictionary.MergedDictionaries>