How do you automatically select all text on focus in WPF TextBoxes?
相关问题
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
- How to properly change a resource dictionary
C# Version from Tortuga Sails
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/
Based on Judah Himango's answer for WinForms. This isn't perfect, but its works well enough to use.
Making a WinForms TextBox behave like your browser's address bar
EDIT