Element focus change on Xamarin
Whenever an element receives focus, it should not automatically trigger an event which changes context
. Example of changing context include, but are not limited to: automatically submitting data, opening a new screen or moving to another element. Focus should only be moved deliberately by the user.
In Xamarin.Forms, you can use the Focused
event to listen to focus changes. The method is called when the element receives focus.
Be careful when the Focused
callback: do not trigger any context change because they might confuse users.