我有一个资源文件在文件夹字符串和文件的子文件夹.看这个图片:
同样在appxmanifest中我将默认语言设置为"en".但不幸的是,语言不随系统语言而改变.
我错过了什么吗?
链接到repo:https://github.com/NPadrutt/MoneyManager
编辑:正如评论中所建议的那样,将这行代码添加到App.cs中的OnLaunched方法解决了这个问题:
ApplicationLanguages.PrimaryLanguageOverride = GlobalizationPreferences.Languages[0];
Run Code Online (Sandbox Code Playgroud)
如注释中所建议,将以下代码行添加到App.cs的OnLaunched方法中解决了以下问题:
ApplicationLanguages.PrimaryLanguageOverride = GlobalizationPreferences.Languages[0];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2054 次 |
| 最近记录: |