问题描述
我开始在WPF应用程序中使用现代UI。我找不到无处回答我的问题:如何设置源链接到页面是在其他项目的本地化?我有与主窗口项目ErpSystem中,我想用项目LogisticModule本地化页面。当我设置源这个值:LogisticModule.View.WarehousePage.xml我已经得到了错误的导航失败,它不能本地化资源LogisticModule.View.WarehousePage.xml。我究竟做错了什么?
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?
推荐答案
您需要使用正确的URI引用从其他项目中的用户控件。大概是这样的:
You need to use a correct URI to reference the user control from other project. Probably something like this:
在你相似的情况下的内容:
In you case something similar to:
您可以找到更多关于WPF的。
You can find more about URIs in WPF here.
这篇关于在WPF UI现代导航页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!