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

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

概述在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 在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属性设置为资源.当我把这个属性改回页面时,错误就消失了.

总结

以上是内存溢出为你收集整理的silverlight – “预计ResourceDictionary的继承者” – 这个错误是什么意思全部内容,希望文章能够帮你解决silverlight – “预计ResourceDictionary的继承者” – 这个错误是什么意思所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1003550.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存