1

I want to set focus to a textbox always. I am creating a application in wpf, in the search page there is a textbox i want to set focus to that textbox always, if the user clicks anywhere in the page the taxtbox should gain the focus. How to achieve this task.

Geetha.

Geeth
  • 5,282
  • 21
  • 82
  • 133

1 Answers1

0

Despite the solution of handling the LostKeyboardFocus and LostKeyboardFocus and set the focus to the same element again using Keyboard.Focus method, you can find a lot of advices and other solutions here

Community
  • 1
  • 1
Amsakanna
  • 12,254
  • 8
  • 46
  • 58