SecondaryTile本地化 [英] SecondaryTile localization
问题描述
请问,如何本地化SecondaryTile.DisplayName。我尝试过ms-resource:< token>,但似乎无效。
谢谢
您好x9110vlado,
您的应用类型是什么? WP8.1运行时应用程序或WP8.1 Silverlight应用程序?为了帮助澄清您的帖子并让人们轻松讲述它的内容,请使用简明扼要的主题并添加适用的标签。
我们将帮助修改此标题标签< a href ="https://social.msdn.microsoft.com/Forums/en-US/b479e984-ca39-4b34-a6b7-85194b54d8bd/guide-to-posting-subject-line-tags\"target ="_ blank">
粘贴帖子或者您可以自己修改(推荐),感谢您的合作。
回到您的问题,您可以将您的字符串资源放入资源文件(如ResW文件)并从后面的代码访问它们,例如:
SecondaryTile secondaryTile = new SecondaryTile(MainPage.logoSecondaryTileId,
" ",
tileActivationArguments,
square150x150Logo,
TileSize.Square150x150);
secondaryTile.DisplayName =" ms-resource:TileDisplayName" ;; //此资源应添加到/en-US/resources.resw或/zh-CN/resources.resw文件等中。请参阅应用程序资源和本地化示例:
https://code.msdn.microsoft.com / windowsapps /应用程序资源和 - cd0c6eaa
Hi,
please, is there any way, how to localize SecondaryTile.DisplayName. I have tried ms-resource:<token>, but it seems not work.
Thank you
Hi x9110vlado,
What's the type of your app? WP8.1 Runtime app or WP8.1 Silverlight app? To help clarify your post and let people easily tell what it is about, please use a clear and concise subject and include applicable tags.
We will help to modify the title tag base on this sticky post or you can modify it by yourself(recommended), and thanks for your cooperation.
Back to your question, you can place your string resource into resource file(like a ResW file) and access them from code behind, for example:
SecondaryTile secondaryTile = new SecondaryTile(MainPage.logoSecondaryTileId, "", tileActivationArguments, square150x150Logo, TileSize.Square150x150); secondaryTile.DisplayName = "ms-resource:TileDisplayName"; //This resource should be added into /en-US/resources.resw or /zh-CN/resources.resw file etc.See Application resources and localization sample: https://code.msdn.microsoft.com/windowsapps/Application-resources-and-cd0c6eaa
这篇关于SecondaryTile本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!