views:

25

answers:

1

I need to style a WPF TextBlock, like

<TextBlock Text="- Test text text text text" TextWrapping="Wrap"/>

that will show the

- Test text text text 
  text

and not the

- Test text text text 
text

Do you know the solution of the problem?

A: 

If you need to apply advanced local formatting to your text you'd better use a RichTextBox that will offer you more control.

Serious
unfortunally, this is not an equivalent replacement of the TextBlock, especially if you need a flexible binding.
Shurup