Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey,

I have a Windows Forms Application with multiple projects within. One of the projects now is a WPF Project with a containing Window object.

Now i want to establish a multi language support for the new integrated Window like this article:

Simplest Way to Implement Multilingual WPF Application[^]

My problem is how to find the languageDict.Source File. Here is the current code:
LanguageDict.Source = new Uri("..\\VideoAudioInterface\\LanguageResources\\Languageresources.de.xaml", UriKind.Relative);


The
Languageresources.de.xaml
File is part of the WPF project, which is not the main starting project of the application, but only one control within another project.

Running the project now i get an error that he uri could not be found. How do I have to set the path for this dictionary? Currently I am a little confused.

Thanks and greets
Marc

What I have tried:

Absolute path, changing to different path variants. No success :-(
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900