从 Resources.Language.Resx 获取值并填充字段 WPF 后面的代码
我在 WPF 应用程序中有以下代码
<TextBlock HorizontalAlignment="Center" id="txtInternet" Foreground="Teal" FontFamily="Gill Sans MT" Text="{Loc Navigation_Panel_Title_Internet}" FontSize="30" Height="45" Width="103" Background="White" />
,它很棒,但我想要做的是在后面的代码中设置文本的值。 ?
即
txtInternet.Text = {Loc Navigation_Panel_Title_Internet}
有人知道该怎么做吗?
我使用 http://wpflocalization.codeplex.com/ 更改语言
I have the following code
<TextBlock HorizontalAlignment="Center" id="txtInternet" Foreground="Teal" FontFamily="Gill Sans MT" Text="{Loc Navigation_Panel_Title_Internet}" FontSize="30" Height="45" Width="103" Background="White" />
In a WPF App, its great, but what I want to do is set the value for the text in the code behind. ?
Ie
txtInternet.Text = {Loc Navigation_Panel_Title_Internet}
Anyone know how to do it ?
Im using http://wpflocalization.codeplex.com/ to change the languages
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试此处提到的方法
Try this method as mentioned here