One of the default annoying behavior of the WPF TextBox is that when it gets focused if there is some text it is not automatically selected, we can use the TextBoxManager AutoSelectText attached property:

<TextBox Text="bla bla..." behaviors:TextBoxManager.AutoSelectText="True" />

the attached property is defined in the “” xml namespace.

Last edited Jun 15, 2013 at 4:02 PM by topics, version 2


No comments yet.