views:

961

answers:

2

In App.xaml I have code:

<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="FJW.App">
    <Application.Resources>
     <!-- Resources scoped at the Application level should be defined here. -->
     <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
       <ResourceDictionary Source="themes/F4.xaml"/>
       <ResourceDictionary Source="themes/F3.xaml"/>
       <ResourceDictionary Source="themes/F2.xaml"/>
       <ResourceDictionary Source="themes/F0.xaml"/>
       <ResourceDictionary Source="themes/F1.xaml"/>
       <ResourceDictionary Source="themes/Palm.xaml"/>
       <ResourceDictionary Source="themes/Key.xaml"/>
      </ResourceDictionary.MergedDictionaries>
     </ResourceDictionary>
    </Application.Resources>
</Application>

Visual Studio is finding error in strings <ResourceDictionary Source="themes/...xaml"/> - Inheritor of the ResourceDictionary is expected.

But project compiling and working right. What's this mean? May be it bug of Silverlight beta? Or I'm coding somthing wrong?

A: 
Brad Tutterow
I think it can't. Becouse when I leave only one xaml in themes folder - there were not errors.
FFire
+7  A: 

Hm. It was a BuildAction problem.

I set up BuildAction property for xamls as Resource. And when I changed this property back to Page - erorrs are vanished.

FFire
Thank you! I had the same problem.
Darrel Miller
This one works!
Bulat
thanks, it works!!
viky
http://msdn.microsoft.com/en-us/library/aa970494.aspx contains some relevant details re: the BuildAction of resource dictionary files.
Greg D