public static string GetSelectedText( DependencyObject obj ) { return (string)obj.GetValue( SelectedTextProperty ); }