简体   繁体   English

WPF VS2013:查找资源字典时发生错误

[英]WPF VS2013: An error occurred while finding the resource dictionary

Team, 球队,

I have a simple wpf project in Visual Studio 2013. The structure is shown below. 我在Visual Studio 2013中有一个简单的wpf项目。结构如下所示。 All that the error says is as shown in the title "An error occurred while finding the resource dictionary". 错误所说的全部内容如标题“查找资源字典时发生错误”所示。 I have tried many suggestions from the net and running out of patience. 我从网上尝试了许多建议并且没有耐心。 Every thing seems to be alright. 每件事似乎都没问题。 Any one experienced with this can kindly suggest some thing. 任何有经验的人都可以提出一些建议。 Thanks in advance. 提前致谢。

VS 2013 Wpf Project显示有关资源的错误

It should read: 它应该是:

...Source="/Skins/MainSkin.xaml"

As the skin isn't in the Content directory. 由于皮肤不在Content目录中。

At the moment it's looking for Content/Skins/MainSkin.xaml (hence / will 'take it up' a directory back to the root). 目前它正在寻找Content/Skins/MainSkin.xaml (因此/将'把它'拿回'到根目录的目录)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM