WPF VS2013: An error occurred while finding the re

2019-02-18 15:19发布

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.

VS 2013 Wpf Project Showing the error with respect to resources

1条回答
孤傲高冷的网名
2楼-- · 2019-02-18 16:15

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).

查看更多
登录 后发表回答