Page navigation in the WPF user interface

I started using a modern interface in a WPF application. Nowhere can I find an answer to my question: how to set the source of a link to a page that is localized in another project? I have an ErpSystem project with MainWindow in which I want to use a page localized in the LogisticModule project. When I set the source for this value: LogisticModule.View.WarehousePage.xml, I got an error that caused the navigation to fail and could not locate the LogisticModule.View.WarehousePage.xml resource. What am I doing wrong?

+3
source share
1 answer

You need to use the correct URI to reference the user control from another project. Maybe something like this:

"/ ReferencedAssembly; component /ResourceFile.xaml"

In your case, something similar to:

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

Read more about WPF URIs here .

+3
source

All Articles