问题
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