如何在Xamarin Forms中更改UWP应用程序的键盘布局?

编程入门 行业动态 更新时间:2024-10-27 22:34:46
本文介绍了如何在Xamarin Forms中更改UWP应用程序的键盘布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在开发要在Windows(UWP)上部署的Xamarin Forms应用程序.我要解决的当前问题是在条目"上设置键盘布局.根据 docs 我唯一要做的更改是在Entry xaml代码中添加一个"keyboard"属性,如下所示:

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" />

这在Windows Mobile Emulator中确实可以正常工作,并且只要我单击该条目,键盘的确会发生变化.但是,当我在Surface Pro平板电脑(UWP)上运行项目时,键盘的布局完全没有改变.

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.

推荐答案

在平板电脑上,无论是iPad还是水面,都将忽略Keyboard属性.在电话上不是.

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.

更多推荐

如何在Xamarin Forms中更改UWP应用程序的键盘布局?

本文发布于:2023-10-07 01:33:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1468065.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   布局   键盘   如何在   UWP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!