.resw资源中的超链接文本值 [英] Hyperlink text value in .resw resources

查看:77
本文介绍了.resw资源中的超链接文本值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地化Windows Phone 8.1应用程序时遇到问题.我想创建带有文本我接受规则"的复选框,其中规则"是链接到另一个视图的链接.我不知道如何在我的.resw文件中绑定单词"rules".

I got problem with localizing my Windows Phone 8.1 application. I would like to create checkbox with text "I accept rules", where "rules" is hiperlink to another view. I've no idea how to bind word "rules" with my .resw file.

<CheckBox>
  <TextBlock TextWrapping="WrapWholeWords" x:Uid="/RegisterPage/RulesAccept">
     <Hyperlink NavigateUri="" x:Uid="/RegisterPage/RulesAcceptHyperlink"/>
  </TextBlock>
</CheckBox>

现在,RulesAccept为我接受","RulesAcceptHyperlink"为规则",但是在我的应用程序中单词"rules"不可见.

Now, RulesAccept is "I accept" and "RulesAcceptHyperlink" is "rules" but in my application word "rules" is not visible.

推荐答案

尝试如下:

<TextBlock TextWrapping="WrapWholeWords">
    <Run x:Uid="RulesAccept"/>
    <Hyperlink NavigateUri="">
       <Run x:Uid="RulesAcceptHyperlink"/>
    </Hyperlink>
</TextBlock>

然后在 Resources.resw 文件中指定应更改的属性:

Then in Resources.resw file specify which properties should change:

RulesAccept.Text =我接受"

RulesAccept.Text = "I accept"

RulesAcceptHyperlink.Text =规则"

RulesAcceptHyperlink.Text = "rules"

您可以找到有关本地化的更多信息

You can find more about Localization here at MSDN.

这篇关于.resw资源中的超链接文本值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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