A
A
AleVerDes2015-12-08 21:07:14
Android
AleVerDes, 2015-12-08 21:07:14

How to mask an EditText in Xamarin?

You need to make a phone mask for the EditText so that whatever you enter inside it looks like "+7(000)000-00-00". I didn’t find any standard tools, and events like KeyPressed or TextChanged don’t help - the first one works twice for some reason (even if it worked adequately - I can’t imagine how to compose and display a line by mask), and the second one does not allow editing text within itself, otherwise enters an infinite recursion. Actually, how to make a MaskedEditText in Xamarin, has anyone faced such a task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wcoder, 2015-12-08
@AleVerDes

Hello!
If you use MvvmCross or Xamarin.Forms, I recommend using converters.
Here is an article to help: https://wcoder.github.io/notes/auto-formatting-tex...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question