android - Xamarin Forms Prism:prism ResourceDictionary 中已存在具有键“Xamarin.Forms.NavigationPage”的资源
问题描述
我有一个使用 Prism 8 的 Xamarin Forms 5.0 应用程序。当我将以下内容添加到 ResourceDictionary 中时:
<Style TargetType="{x:Type NavigationPage}">
<Setter Property="BackgroundColor" Value="{StaticResource PrimaryBackground}" />
<Setter Property="BarBackgroundColor" Value="#ea5c2d" />
</Style>
我收到异常“ResourceDictionary 中已存在具有键‘Xamarin.Forms.NavigationPage’的资源”
我没有在任何地方创建重复标签,所以不知道为什么。
感激地收到任何帮助。
解决方案
有同样的问题。
查看您的“App.xaml”。
在我的情况下,有一个重复。
推荐阅读
- cakephp - fontawesome-webfont.ttf:1 在 cakephp 2.10.12 中找不到
- excel - 将数字存储为文本时如何使用带有大于或等于运算符的 Excel SUMIFS
- python - 如何在 Flask-SQLAlchemy 中按用户获取不同列条目的数量?
- java - Java JDBC ActiveDirectoryAuthentication Azure SQLServer 失败并出现 401 /adfs/services/trust/13/windowstransport 异常
- bluetooth - 为什么 Fido 在网络蓝牙中被阻止而不是 USB
- ios - 为 UIButton 启用自动调整大小会禁用图像背景
- arduino - Arduino 草图会重复一条指令,即使它没有太多
- angular - Angular html不会将数据传递给组件
- arrays - 如何在反应中推送 JSON 对象数组中的项目?
- numpy - 运行 Kmeans 时如何解决“异常:数据必须是一维”错误