Search code examples
uno-platform

How to keep the software keyboard in Android from hiding after a TextBox loses focus in Uno Platform?


I have a TextBox and a Button. When the button is clicked, the TextBox loses focus and the keyboard hides. How do I keep the keyboard from hiding when the button is clicked?

I first thought to use AllowFocusOnInteraction, but this is not supported on Android at this time.


Solution

  • Although AllowFocusOnInteraction isn't implemented, Control.IsTabStop is. IsTabStop likewise prevents the control from receiving focus. Use IsTabStop instead.