Question

I am starting a new application in WPF and I am curious how to handle Localization? In WinForms you can use resx strings for the UI text, how is this done in WPF? Is there a special binding syntax for binding to resx resources or is there a different way of doing this?

Thanks!

Was it helpful?

Solution

Check out WPF Globalization and Localization Overview. The article explains nicely how localization in WPF works.

OTHER TIPS

you can use a MarkupExtension to do localization with dynamic language switching. Here is an interesting article about this:

http://www.wpftutorial.net/LocalizeMarkupExtension.html

I found very easy to start WPF localization with VS template, described in authors blog.

Project created using this template already contains all the necessary tools for localization, as well as the maximum automates the localization process. During application development, you add a new XAML file without having to worry about localization. Upon completion of the changes simply build project and change default language to translated.

Download template

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top