2

Do you know, how can I remove focus from UIElemnent programatically? The situation is: I need to remove focus from TextBox, when I pressed enter. How to handle key pressing I know. Please help me to remove focus from UIElement in Silverlight.

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Evgeny Ekim
  • 241
  • 3
  • 13

1 Answers1

2

If you want to remove the Focus from the TextBox after hitting Enter you can call the Focus() method of another Control that you want to focus afterwards.

I think you have no other option than focusing another Control, cause you can´t remove the focus completely.

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Jehof
  • 34,674
  • 10
  • 123
  • 155