For once I´ll ramble less and provide more 🙂

A simple class to help you make the WPF TextBox able to select the text when it gets focus. I´ve gotten tired of subclassing all the time so this is a neat little class that you can just attach to any TextBox-control.

The class looks like this:

And you use it like this:

Seems to be working pretty well and with a small amount of code.