在xaml - xamarin-forms中输入键盘数字

本文关键字:输入 键盘 数字 xamarin-forms xaml | 更新日期: 2023-09-27 17:52:46

我有这样的代码:

<local:SportEntry x:Name="txtNumberCel" Font="Large" TextColor="Black" Opacity=".7" Text="{Binding Check}"

我想要显示一个键盘数字,在Xamarin-Forms的文本框中插入一个数字。我尝试了InputScope="Number"和InputType="numberDecimal ",但不工作。

你有什么主意吗?非常谢谢! !

在xaml - xamarin-forms中输入键盘数字

我假设这个控件继承自Entry:

<Entry Keyboard="Numeric" ... />