问题描述
我在本地化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:
RulesAcceptHyperlink.Text =规则"
RulesAcceptHyperlink.Text = "rules"
您可以找到有关本地化的更多信息请访问MSDN .
You can find more about Localization here at MSDN.
这篇关于.resw资源中的超链接文本值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!