FFi*_*ire 12 silverlight silverlight-3.0
在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>
Run Code Online (Sandbox Code Playgroud)
Visual Studio在字符串中发现错误<ResourceDictionary Source="themes/...xaml"/>
- 引发以下错误消息:预期ResourceDictionary的继承者.
但该项目正在正确编译并正在正常运行.错误消息是什么意思?也许这是这个测试版Silverlight版本的错误?或者是我的错误?
FFi*_*ire 28
嗯.这是一个BuildAction问题.
我为xamls设置了BuildAction属性作为Resource.当我把这个属性改回页面时 - erorrs就消失了.
| 归档时间: |
|
| 查看次数: |
3959 次 |
| 最近记录: |