当App.xaml的Build Action = Page时找不到资源 [英] Resources can't be found when App.xaml's Build Action = Page
本文介绍了当App.xaml的Build Action = Page时找不到资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将App.xaml的构建操作更改为"Page",因此我可以处理启动屏幕,并确保我的应用程序仅作为单个实例运行(具有自己的入口点).它在运行时运行良好,但在设计时,该应用程序无法再查看我的资源.资源位于同一项目中的单独xaml文件中.如何使我的应用在设计时再次看到资源?
古斯塔沃-中部加州
I changed the build action of my App.xaml to "Page" so I could handle a splash screen and make sure my application run as a single instance only (having my own entry point). It works fine in run-time but in design-time the application cannot see the my resources anymore. Resources are in separate xaml files located in the same project. How can I make my app see the resources in design-time again?
Gustavo - Central California
推荐答案
您需要从项目属性中添加资源.
You need to add resources from your project properties.
添加资源=>添加现有项目.
Add resources => Add existing item.
这篇关于当App.xaml的Build Action = Page时找不到资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文