且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从资源中获取字符串以在 xaml 的 WPF 资源部分中分配

更新时间:2023-11-07 09:22:04

这些答案都不是你想要的.我将从阅读 WPF 中的本地化开始.您会发现,如果您使用 WPF 进行本地化,您需要在应用程序的每个节点上定义 x:Uid.

None of those answers are close to what you want. I'd start by reading about Localization in WPF. You'll find that if you are doing localization with WPF you'll want x:Uid defined on every node in your app.

http://msdn.microsoft.com/en-us/library/ms788718.aspx