+ 1
How to remove focus from text box on wpf?
3 Respostas
+ 2
var textbox = document.querySelector('input');
textbox.blur();
// you should adapt the query string to target the right element ^^
+ 1
Thanks!
+ 1
I am not sure why you want to do this.
Remove focus is not about getting the focus off the textbox, it it about defining where the focus should go.
Do you want another textbox or control get the focus ?
Also have a look at this link
https://stackoverflow.com/questions/2914495/wpf-how-to-programmatically-remove-focus-from-a-textbox