Multiline for WPF TextBox

Posted by baron on Stack Overflow See other posts from Stack Overflow or by baron
Published on 2010-04-16T02:08:51Z Indexed on 2010/04/16 2:13 UTC
Read the original article Hit count: 281

Filed under:
|
|

I am developing a app for sending some feedback.

Basically i'm trying to make a TextBox for comments, but i'm used to the WinForms MultiLine=true. I've set MinLines to 3, which is getting there, but preferably i'd like if user is able to type wherever in this block, like press enter and do dot points sort of thing - like:

- Item 1        blah
- Item 2                blahlb lahbvl   d

But at the moment the text all stays on one line.

- Item 1         blah - Item 2                      blahb blahb blah

This comments will then help fill the body of an email which is sent. It may be pointless if I can't easily keep the same formatting when putting this string into the email body string (so that it looks like it does when sent as it does when typed).

Can I achieve what I'm after or do I have to leave it as all text on one line?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about multiline