This method is ugly but it works. The key part is
IsTabStop property. If I don’t touch it – the keyboard disappers for a fraction of a second and reapears again.
Makes virtual keyboard disappear when user taps enter key.
You just need to call the
LostFocus method and pass the name of the
TextBox control as a parameter to make it lose focus.