Say I have a project that contains a Window.xaml and ResourceDictionary.xaml. In the Window I pull in via its MergedDictionaries the resource dictionary.
If the main app contains both, then I can set Source to simply "ResourceDictionary.xaml".
Yet if they are in a DLL assembly, then I must set Source to "/MyLibrary;component/ResourceDictionary.xaml" to work.
The docs at MSDN confuse me. They imply that if a reference is made in a given assembly, then a relative URI will by default check that same assembly. Yet that doesn't seem to be the case here.
What is really going on? My problem with the absolute URI is not the extra typing, but the necessary hard coding of the assembly name.