Hello,
but I would like it to go back when I delete the entry text."Handling Entry TextChanged event in .NET MAUI
You can do it by implementing textchanged event and Focus method.
When this previous Entry's text is empty, you can back to the previous entry by Focus method.
private void SecondEntry_TextChanged(object sender, TextChangedEventArgs e)
{
var entry = sender as Entry;
if (entry.Text.Length == 0)
{
entry1.Focus();
}
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.