本文介绍了[UWP] en-US语言包含多个可选键盘布局,如何在UWP应用中检索它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取当前激活的键盘布局语言。我使用了System.Globalization.CultureInfo,获取所有语言。


像这样:

 var topUserLanguage = Windows.System.UserProfile.GlobalizationPreferences.Languages; 
var d = topUserLanguage.Count;

祝你好运,


Roy


Hi., I'm trying to get currently activated keyboard layout language. I used System.Globalization.CultureInfo, Language.CurrentInputMethodLanguageTag property to get information about currently activated keyboard layout language. Here, I always get en-IN and en-US for respective activated layout. But as in the below screenshot, I have 3 optional keyboard layouts under en-US,

Additionally, I used Windows.UI.Text.Core.CoreTextServicesManager. This api also returns en-IN and en-US as per my OS configuration. My question is, is it possible to retrieve these sub categories of a language added to the Windows 10 OS?

解决方案


这篇关于[UWP] en-US语言包含多个可选键盘布局,如何在UWP应用中检索它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 01:39