Is it possible to reference Xaml assets stored in a ResourceDictionary (build action = resource) from another project? I would like to either merge the assets into the main project's resource dictionary or access them individual. For example:
- Project "MyResources" contains a folder named "Assets" which has a ResourceDictionary called "MyAssets.xaml" which contains a Style called "ButtonStyle"
- Project "MainProject" references MyResources; in MainWindow.xaml
In MainWindow.xaml I'd like to do something like:
<ResourceDictionary.MergedResources>
<ResourceDictionary Source="/MyResources/Assets/MyAssets.xaml"/>
</ResourceDictionary.MergedResources>
Or, if that's not possible, perhaps:
<Button Style="{StaticResource /MyResources/Assets/MyAssets.xaml}"/>
Is there a way to refer to stuff in MyResources from MainProject?