UWP C# Keyboard input focus

VoyTec 671 Reputation points

Greetings !!! :-)

Today's question:
How to return keyboard's input focus back to a TextBox which has been enabled again?

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Roy Li - MSFT 32,721 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    Based on your scenario, you could just call the TextBox.Focus() Method to make the TextBox focus again. It's just a simple line of code and you could put it after you enable the TextBox.

    For example:

                MyTextBox.IsEnabled = true;  

    Thank you.

    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful