Ben's Series

Transcript

Tap on time to skip ahead

00:11

00:11

Let’s kind of knock off some low hanging fruit. Let’s rework the configuration of our keyboard by first going to the email entry and setting the keyboard type as Email. Let’s go ahead and make our password entry more secure by setting IsPassword to true. Now, if I do a clean and then rerun our application, those two things should be taking care of.

00:44

00:44

Now, when I tap in email, I have our nice @ as well as a period. If I hit return, if I go to the password and type in here, it’s now a secure entry. That was real easy to do. Actually, for a lot of people, that’s a no brainer.

01:00

01:00

How about handling the focus? Sending it from one entry to another? If I type in EmailEntry, and then I use my Intellisense, I will find that I have a Completed event that I can listen too. I’m going to use a simple lambda expression for whenever our email entry fires off the completed event, which will happen any time the user hits the return key. I’m going to say PasswordEntry.Focus. This is going to basically tell the application, “Hey, put the cursor in the password entry.”

01:33

01:33

Lastly, kind of piggybacking on this convention, I can say PasswordEntry.Completed, again, add another lambda expression as an event handler. I can say vm.SubmitCommand.Execute, I’m going to pass null in there because we don’t really have anything that we want to send to our ViewModel.

01:55

01:55

And now, when I run our application, we should have a friendlier user experience. I’m going to tap into email. I’m going to tap blah blah blah @adsf.com, a bunch of gibberish in for password and now when I hit return we get this nice prompt that let’s us know, “Hey your credentials are incorrect.” But I was able to do this all from the keyboard of our application. This also works in Android as well. I’m going to stop the iOS app, make the Android project our startup project, make sure we do a nice clean. Now, when I run it, we should be good to go.

02:47

02:47

Now, when I tap in email, we’ve got our @ and period. I’m going to ignore. Again, if I type in our password, we’ll see that it’s nice and secure. When I hit return here, we submit our credentials and get the invalid prompt. As you can see, just with a few minutes of extra work, if that, you can make your users much happier when they go to enter information into your application.