Numeric keyboard with "Done" button on iOS Xamarin.Forms

Evgeny Zborovsky · May 5, 2017

‘Done’ button on Numeric keyboard on iOS is a very popular clients request, but it does not appear out of the box. Luckily the solution is very easy (as usual), all we have to do is to extend ‘Entry’ control and to add a custom renderer:

As you can see all the ‘magic’ is happing in AddDoneButton() method. We create a toolbar and add a ‘Done’ UIBarButtonItem which will hide the keyboard and send a ‘Completed’ event back.

The solution is based on this thread and available as a gist on github.

Twitter, Facebook