Page navigation in WPF Modern UI

。_饼干妹妹 提交于 2019-12-22 10:19:11

问题


I started using Modern UI in WPF application. I can't find nowhere answer to my question: how set source for link to page that is localized in other project? I've got project ErpSystem with MainWindow in which i want to use page localized in project LogisticModule. When i'm setting source to this value: LogisticModule.View.WarehousePage.xml i've got error that navigation failed and it couldn't localized resource LogisticModule.View.WarehousePage.xml. What am i doing wrong?


回答1:


You need to use a correct URI to reference the user control from other project. Probably something like this:

"/ReferencedAssembly;component/ResourceFile.xaml"

In you case something similar to:

"/LogisticsModule;component/View/WarehousePage.xaml"

You can find more about URIs in WPF here.



来源:https://stackoverflow.com/questions/20031163/page-navigation-in-wpf-modern-ui

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