WPF 中的本地化 [英] Localization in WPF

查看:21
本文介绍了WPF 中的本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 WPF 中启动一个新应用程序,我很好奇如何处理本地化?在 WinForms 中,您可以将 resx 字符串用于 UI 文本,这在 WPF 中是如何完成的?是否有用于绑定到 resx 资源的特殊绑定语法,或者是否有不同的方法?

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?

谢谢!

推荐答案

查看 WPF 全球化和本地化概述.这篇文章很好地解释了 WPF 中本地化的工作原理.

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

这篇关于WPF 中的本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆