【问题标题】:How to change the keyboard layout of a UWP app in Xamarin Forms?如何在 Xamarin Forms 中更改 UWP 应用的键盘布局?
【发布时间】:2018-03-06 22:19:22
【问题描述】:

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

 <Entry Keyboard="Numeric" />

这在 Windows Mobile Emulator 中运行良好,并且只要我单击该条目,键盘就会发生变化。但是,当我在 Surface Pro 平板电脑 (UWP) 上运行项目时,键盘的布局根本没有改变。

【问题讨论】:

    标签: xamarin.forms xamarin.forms-styles xamarin.forms.entry


    【解决方案1】:

    在平板电脑上,无论是 iPad 还是 Surface,都会忽略 Keyboard 属性。在电话上不是。

    所以你没有机会在平板电脑上影响它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-08-02
      • 2019-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-01
      • 2016-09-24
      相关资源
      最近更新 更多