Text in the message box should be the next next lines

David Bekham picture David Bekham · Jun 22, 2012 · Viewed 55.2k times · Source

Basically i display the some text in the MessageBox with Ok and Cancel button in WindowPhone 7.1.

I need the requirement like the below.

Some text will be here....

Property:value...

Actually we can simply the text in the MessageBox, but how can i add the linebreak between the text in the MessageBox.. Is there any way to do this in Windows Phone?

Answer

Charleh picture Charleh · Jun 22, 2012

You can use Environment.Newline for line breaks

string msg = "Text here" + Environment.NewLine + "some other text";