How to change the keyboard layout of a UWP app in Xamarin Forms?

浪尽此生 提交于 2019-12-11 04:49:33

问题


I am working on a Xamarin Forms app which I want to deploy on Windows (UWP). The current problem I am trying to solve is to set the keyboard layout on an "Entry". According to the docs the only change I have to make is to add a "keyboard" property in the Entry xaml code like that:

 <Entry Keyboard="Numeric" />

That does work fine in Windows Mobile Emulator and the keyboard does change as soon as I click on the entry. However, when I run the project on a Surface Pro tablet (UWP) the layout of the keyboard does not change at all.


回答1:


On tablets, no matter if it is an iPad or a surface, the Keyboard property is ignored. On a phone it is not.

So you have no chance to influence it on a tablet.



来源:https://stackoverflow.com/questions/46413795/how-to-change-the-keyboard-layout-of-a-uwp-app-in-xamarin-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!