在WinRT中更改UI文化 [英] Change UI culture in WinRT
本文介绍了在WinRT中更改UI文化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以即时更改WinRT中的UI文化?我找到了ApplicationLanguages.PrimaryLanguageOverride = "en";
,但这仅在显示应用程序UI之前有效,而在之后不起作用(例如,我想通过设置更改UI语言).
Is it possible to change the UI Culture in WinRT on-the-fly? I've found ApplicationLanguages.PrimaryLanguageOverride = "en";
, but this only works before showing the app UI and not afterwards (e.g. I want to change the UI language through the settings).
推荐答案
有可能. SDK资源中有一个示例. 有不同的方案.方案8显示了如何动态更改语言.
It is possible. An example is in the SDK resources. There are different scenarios. Scenario 8 shows how to change language on the fly.
这篇关于在WinRT中更改UI文化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文