I have a question on how to work with resourcedictionaries with compositewpf.
I create an instance of a model in a resourcedictionary defined at my module. The module works on its own fine. However, when I try to load the module from the shell the reference to the resource dictionary is lost. I have tried different settings such as copying the file and changing its build action. I have also tried to use a Mergedictionaies in the app.xaml application definition file.
'Cannot find resource named' is the error that is thrown from the xaml page that tries to load it. Is there a way to propagate this dictionary to the so the module can use in in the shell?
Comments: ** Comment from web user: BillKrat **
I create an instance of a model in a resourcedictionary defined at my module. The module works on its own fine. However, when I try to load the module from the shell the reference to the resource dictionary is lost. I have tried different settings such as copying the file and changing its build action. I have also tried to use a Mergedictionaies in the app.xaml application definition file.
'Cannot find resource named' is the error that is thrown from the xaml page that tries to load it. Is there a way to propagate this dictionary to the so the module can use in in the shell?
Comments: ** Comment from web user: BillKrat **
I found if you don't have at least the following in your App.xaml resources will not load:
```
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries/> <= this line fixes it
<style ... Your styles here...
</ResourceDictionary>
</Application.Resources>
```