I'm having some issues. I want my app to load a ResourceDictonnary dynamically in app.xaml.cs.
This is my code for the moment :
ResourceDictionary theme = XamlReader.Load(???);
Resources.MergedDictionaries.Add(theme);
The problem is, how can I get my ResourceDictionnary stream from the xaml file ? I don't want to copy the xaml file with the exe. It's build action is set to Page and I want to load it.
Can you tell me how to do that ?
Thanks !