You need to do what inmiko suggested. Here is the code in C #
Part 1.
txtUsername.ShouldReturn = TextFieldShouldReturn; txtPassword.ShouldReturn = TextFieldShouldReturn;
create a function in your view
private bool TextFieldShouldReturn(UITextField tf) { //change the code below as per your validation if (tf == _txtUsername) { _txtPassword.BecomeFirstResponder(); return true; } if(tf == _txtPassword) { // validate field inputs as per your requirement tf.ResignFirstResponder(); return true; } return true; }
source share