WPF VS2013: An error occurred while finding the resource dictionary

℡╲_俬逩灬. 提交于 2019-12-19 09:05:32

问题


Team,

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.


回答1:


It should read:

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

As the skin isn't in the Content directory.

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



来源:https://stackoverflow.com/questions/25721324/wpf-vs2013-an-error-occurred-while-finding-the-resource-dictionary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!