silverlight – “预计ResourceDictionary的继承者” – 这个错误是什么意思

在App.xaml中,我有以下代码:

<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在字符串< ResourceDictionary Source =“themes / ... xaml”/>中发现错误.
– 提高以下错误信息:预期ResourceDictionary的Inheritor.

但是这个项目正在得到正确的编译并且正常运行.错误信息是什么意思?也许这是Beta版Silverlight版本的错误?还是我的错误?

嗯.这是一个BuildAction问题.

我将xamls的BuildAction属性设置为资源.当我把这个属性改回页面时,错误就消失了.

相关文章
相关标签/搜索