如何获得Windows“安装语言”在地铁应用程序? [英] How to get Windows "install language" in metro app?

查看:63
本文介绍了如何获得Windows“安装语言”在地铁应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想获得Windows'" install language"在我的应用程序中,如 GetSystemDefaultUILanguage()  ;功能在桌面应用程序中。但我发现这个api
不允许从metro应用程序或WinRT组件调用。是否有任何API可以获得Windows''安装语言'在metro app中?

解决方案

此属性中列出的第一种语言应该能满足您的需求:
http://msdn.microsoft.com/en-us/library/ windows / apps / windows.system.userprofile.globalizationpreferences.languages.aspx


您也可以查看:System.Globalization.CultureInfo。



Hi,

I want to get Windows' "install language" in my app like GetSystemDefaultUILanguage() function does in desktop application. But I find this api is not allowed to call from metro app or WinRT component. Is there any api can get Windows' "install language" in metro app?

解决方案

The first language listed in this property should give you what you need: http://msdn.microsoft.com/en-us/library/windows/apps/windows.system.userprofile.globalizationpreferences.languages.aspx

You can check this out too: System.Globalization.CultureInfo.


这篇关于如何获得Windows“安装语言”在地铁应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆