简体   繁体   中英

Localization directly to xaml code on windows phone?

How can I bind value from my resources files (es,en resources) to a element on page like text blocks and so on.

I've found this tutorial but in this case is using C#, I want to do it but just put some binding on the element markup not coding.

That page clearly shows how to associate controls to resources:

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="" />

Have you tried it?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM