Localization in WPF

前端 未结 3 1546

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

相关标签:
3条回答
  • 2020-12-05 02:42

    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

    0 讨论(0)
  • 2020-12-05 02:45

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

    0 讨论(0)
  • 2020-12-05 02:50

    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

    0 讨论(0)
提交回复
热议问题