Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Localization in WPF

$
0
0
Hi there:

I'm studying wpf and localization, the book tells me to place <UICulture>en-US</UICulture> in the <PropertyGroup> element in th myProject.csproj file.

After I did that, I just can't run the project anymore. I just can't test the localization changes because of that exception. . If I delete the <UICulture>en-US</UICulture> line the project runs ok.

In the project, I have a window myWindow.xaml, in apps.xaml the StartUpUri is set to myWindow.xaml. When the <UICulture>en-US</UICulture> line is present, I get an IOException saying that the resource myWindow.xaml can't be foud.

It's like VS is searching for the myWindow.xaml resource in other folder, I realize that there's a new folder named en-US that contains the myProject.resources.dll file, but the file myWindow.xaml hasn't been moved.

Can anyone tell me what am I missing here?

Rafael
Believe you can do it, and you will!!

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>