How to get selected text of a WPF TextBox

Here is a TextBox.

<TextBox Name="TextBox1">
Here is some text
</TextBox>


This is how to get the selected text:

String selText = TextBox1.SelectedText;