Page navigation in WPF Modern UI
Asked Answered
D

1

4

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?

Didymium answered 17/11, 2013 at 13:24 Comment(0)
G
4

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.

Glasgo answered 17/11, 2013 at 15:15 Comment(1)
thank you for your answer. I didn't even know how to look for the answer. Now it's clear and work perfectly.Didymium

© 2022 - 2024 — McMap. All rights reserved.