WPF VS2013:查找资源字典时发生错误 [英] WPF VS2013: An error occurred while finding the resource dictionary

查看:1992
本文介绍了WPF VS2013:查找资源字典时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,

我在Visual Studio 2013中有一个简单的wpf项目。结构如下所示。所有错误说的都是标题找到资源字典时发生错误所示。我已经从网络中尝试了许多建议,不耐烦地走了出来。每件事似乎都没事。任何有经验的人都可以提出一些建议。提前致谢。

I have a simple wpf project in Visual Studio 2013. The structure is shown below. 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.

推荐答案

应该是:

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

作为皮肤不在内容目录中。

目前它正在寻找内容/皮肤/ MainSkin.xaml (因此 / 会将一个目录恢复到根目录。)

At the moment it's looking for Content/Skins/MainSkin.xaml (hence / will 'take it up' a directory back to the root).

这篇关于WPF VS2013:查找资源字典时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆