直接本地化到 windows phone 上的 xaml 代码?
Localization directly to xaml code on windows phone?
如何将资源文件(es,en 资源)中的值绑定到页面上的元素,如文本块等。
我找到了 this tutorial,但在本例中使用的是 C#,我想这样做,但只是对元素标记进行一些绑定而不是编码。
该页面清楚地显示了如何将控件关联到资源:
You need to associate every control that needs localized text with the
.resw file. You do this using the x:Uid attribute on your XAML
elements like this
<TextBlock x:Uid="Greeting" Text="" />
你试过了吗?
如何将资源文件(es,en 资源)中的值绑定到页面上的元素,如文本块等。
我找到了 this tutorial,但在本例中使用的是 C#,我想这样做,但只是对元素标记进行一些绑定而不是编码。
该页面清楚地显示了如何将控件关联到资源:
You need to associate every control that needs localized text with the .resw file. You do this using the x:Uid attribute on your XAML elements like this
<TextBlock x:Uid="Greeting" Text="" />
你试过了吗?