wpf richtextbox text

Original Post : http://stackoverflow.com/questions/957441/richtextbox-wpf-does-not-have-string-property-text

RichTextBox test = new RichTextBox(); cannot have test.Text(?)

Do you know how come it can be possible ?

================================================================

There was a confusion between RichTextBox in System.Windows.Forms and in System.Windows.Control

I am using the one in the Control as I am using WPF. In there, there is no Text property, and in order to get a text, I should have used this line:

string myText = new TextRange(transcriberArea.Document.ContentStart, transcriberArea.Document.ContentEnd).Text;

thanks

wpf label multiline

Original Post : http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/ff1a4626-40d6-41dd-a077-9c39a45c5b8d/

Hi,

I need to display the contents in multiline in wpf labels. Can anyone help me in this regard?

Thanks and Regards,


============================================================


Use TextBlock as the content (or use TextBlock instead of Label).

Then set the TextBlock TextWrapping property to “Wrap”.

You can even use auto-hyphenation by setting IsHyphenationEnabled to true.