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.
Asked
Active
Viewed 1,215 times
2

Dave Clemmer
- 3,741
- 12
- 49
- 72

Evgeny Ekim
- 241
- 3
- 13
1 Answers
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
-
Thank you. I hoped for other solution, but I see easy solution can't be done. – Evgeny Ekim Sep 25 '12 at 10:17