Use "{DynamicResource myresource}" instead of "{StaticResource myresource}".
If your assembly A.exe has the required dictionaries in its wpf tree, then sub-controls of referenced assembly B.dll will find required resource.
You will not see the expected result in WPF designer, though.