Silverlight: Why can't silverlight see my xaml file referenced in MergedDictionary?
- by Sergio
Hi there,
I have a silverlight application with a number of styles defined in a seperate xaml file under the directory /Styles.
My App.xaml looks like this:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Styles/Legend.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Legend.xaml has its build action set to Content and 'Do Not Copy' as the copy to output directory setting.
The message I'm getting in blend is:
An error occurred while finding the resource dictionary "/Styles/Legend.xaml"
Thanks in advance!