Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically select all text on focus in WPF TextBox

How do you automatically select all text on focus in WPF TextBoxes?

like image 328
Jonathan Allen Avatar asked Dec 21 '22 21:12

Jonathan Allen


1 Answers

You can do it very easily by adding a global event handler to your application, Jonathan.

http://madprops.org/blog/wpf-textbox-selectall-on-focus/

like image 177
Matt Hamilton Avatar answered Dec 24 '22 10:12

Matt Hamilton