Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lowercase-only Input in Xamarin.Forms

I am building a Xamarin.Forms app to be used with iOS and Android. The first Page of this app is a login form, with fields pictured below.

App login form

It's my intention to have the keyboard (when focused on the username field) expect all-lowercase characters.

I achieved this on a physical Android device by removing Keyboard="Text". However, the iOS emulator seems adamant that uppercase is the way to go on that first letter, also showing this behaviour when I have the software keyboard up on the emulator.

I've really struggled to find more information for this when browsing Google. Is anyone aware of:

  1. Expected behaviour of Xamarin.Forms here?
  2. A way to work around this?
like image 499
phantomraa Avatar asked Sep 29 '25 09:09

phantomraa


1 Answers

I found a simple xaml solution from alexgavru on this question. <Entry Keyboard="Plain" /> worked for me.

like image 105
MJ Hughes Avatar answered Oct 02 '25 04:10

MJ Hughes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!